I am integrating google maps sdk. Its all work fine. But how to remove particular Marker(Pin Point) when second will appear.(I am not using Mapkit)
I want the following:
In case you have different markers, and you want to remove only specific markers from the map, then you have to hold that marker(s) object.
say if you have
var removableMarkers: [GMSMarker]?
you have to append those markers in the above array when adding markers to map
Now, when you want to remove those markers:
_ = self.removableMarkers.map({
$0.map = nil
})
self.RemovableMarkers = []
That's it!