On Jul 14, 4:58 pm, sunbeam <[email protected]> wrote:
>
> any help would be appreciated

I suggest looking at http://econym.org.uk/gmap/basic1.htm to see how
listeners are used *within* the createMarker function. Adding a
listener to a marker inside that function binds the listener to the
right marker.

Currently, when the listener is triggered, its handler function opens
the infoWindow on whatever happens to be called "marker" at that time,
which will always be the last one. (That is, you have fallen into
Pitfall Number Three)

> PS: to the admins & moderators, sorry for the dumb post earlier,

No worries.

-- 
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