> When loading the page, the first alert will for example display:
> A
> B
> C
> D
>
> And the alert inside the event listener will only display D when I
> click on any marker. I was expecting respectively to get alerts of A,
> B, C and D.

   http://econym.org.uk/gmap/basic1.htm
Pitfall number three.

The technique explained -
   http://econym.org.uk/gmap/closure.htm

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to