Android, How to remove all markers from Google Map V2?

后端 未结 5 1312
刺人心
刺人心 2020-12-25 10:04

I have map view in my fragment. I need to refresh map and add different markers based on condition. So, I should remove last markers from map before add new markers.

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-25 10:47

    If you want to clear "all markers, overlays, and polylines from the map", use clear() on your GoogleMap.

提交回复
热议问题