Thanks Rossko for your answer. Your solution sounds like the way to
go, but.. how do I capture the id in the function closure?
alert(map[i].id); doesnt work...

On Nov 22, 3:10 pm, Rossko <[email protected]> wrote:
> > I'm probable missing something very elementary here, but I cannot
> > figure out how to know the id of the canvas that triggered the
> > clickevent. Seems like event only has latlng, nothing else?
>
> As you have a unique listener for each map, if listener N is fired the
> user must have clicked on map N ...
> Use function closure to capture the id or whatever of the map as you
> create the listener.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to