This project is read-only.

Count Marker via javascript

Dec 9, 2010 at 6: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 9:58 AM
Edited Dec 9, 2010 at 9: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 10:15 AM
Edited Dec 9, 2010 at 10: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 1: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 4: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.