Count Marker via javascript

Dec 9, 2010 at 5:19 AM

Could anyone tell me how can i count marker on the map via javascript?

I'm using GoogleMap1.Markers.Count but it's say undefined.


any help much appreciated.

Dec 9, 2010 at 8:58 AM
Edited Dec 9, 2010 at 8:59 AM

Please, try:

Event for convinience the control and collections identifiers are kept same as on the server-side, Markers is and JavaScript array after all.
So, I think using length on it should do the work :)



Dec 9, 2010 at 9:15 AM
Edited Dec 9, 2010 at 9:19 AM

It's working :), thanks you so much.

One more thing related to google direction. Is there away that we can disable direction markers? What i want is to keep only highlight on the road.



Dec 9, 2010 at 12:42 PM

That will be available as option, when v5.0 is finished :).
As I noted on my last update, just Directions and Evenst left to be finished in v5.0 for GoogleMaps API v3


Dec 9, 2010 at 3:29 PM

So i will update the control to version 5 when it released.

in version 4.1, is there a way that we can find specific location? Example: when the user in put house number and street number, the map will set a marker to that location.