views:

124

answers:

1

Is there any easy way using the api to get a count of all markers on a map? I have a page similar to this http://www.gorissen.info/Pierre/maps/googleMapLocationv3.php where a user can add markers by clicking on the map. I'd also like to show a count of all the markers. I could do this by declaring a global count var and incrementing it in the event listener, but I thought it would be better if there was an API method I could use and I can find it in the docs.

A: 

What I was looking for was getMarkerCount function of MarkerManager http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/1.1/docs/reference.html

aland