Getting GMarkers Added to Google Map?

Is there a way to get a list of all GMarkers that have been added to the map?

0


source to share


1 answer


I don't think there is an API method to return a list of GMarkers or overlays that have been added to the map. You will have to keep track of them yourself, adding them to the list when they are added to the map.



GMap2 provides addoverlay removeoverlay and clearoverlays events that might be useful.

+1


source







All Articles