issue with removing polyline google map v2 android
To remove the Polyline
, use polyline.remove();
You shouldn't use PolylineOptions
to remove it.
Use PolyLine
like this
polyline.remove();
Documentation
public void remove ()
Removes this polyline from the map. After a polyline has been removed, the behavior of all its methods is undefined.