Remove The Previous Markers As The Location Updates
I have placed some markers on map. As the location of the marker changes it places another marker on the map but keeping the last marker as it is which creates multiple markers of
Solution 1:
The below may help you to remove marker
if (destnationMarker != null) {
destnationMarker.remove();
mMap.clear();
destnationMarker = null;
}
Post a Comment for "Remove The Previous Markers As The Location Updates"