Google Maps iOS Remove Polylines
When you add the polylines you should add them to your own collection. Then when you need to remove them, loop over your own collection and set each polyline's .map
property to nil (which removes it from the map).
You have to do
[self.polyline setMap:nil];
, that will remove the line from the map.