tags:

views:

216

answers:

1

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

+1  A: 

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

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

foxy