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:
This worked for me -
func removeMarkers(mapView: GMSMapView){ for (index, _) in markers.enumerate() { //print("Item \(index): \(element)") self.markers[index].map = nil } }
where
var markers = [GMSMarker]()
markers contains all the marker overlays for the mapView