How to remove all the polylines from a map

前端 未结 3 837
余生分开走
余生分开走 2020-12-25 10:10

Following

How to draw a path between two markers

I had to add lot of polylines between two markers, to make a path.

One of the markers is draggable,

3条回答
  •  遥遥无期
    2020-12-25 10:28

    Update

    If you want to removes all markers, polylines, polygons, overlays, etc from the map use

    mMap.clear(); //it will remove all additional objects from map 
    

    and if you only want to remove all or single polyline, polygon, marker etc see @DiskDev Answer above. In this case you must keep track of every single additional object you add to map

提交回复
热议问题