Getting GMarkers Added to Google Map?
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 to share