On Feb 17, 7:35 am, richbobby <[email protected]> wrote:
> Hey,
>
> I am having a problem with the markers on my map.  When you click on a
> marker, the event windows all have the same origin.  The HTML info
> being passed into the window is correct.
>
> http://terpconnect.umd.edu/~dgrubman/index.html
>
> I'm worried that the way I've populated the markers is the source of
> the error.  The event window always displays on the last entry in the
> xml file.  Because i am not assigning an id to each entry, like many
> of the examples online, am i unable to control where the event window
> occurs?

My guess is that you are not getting function closure on the marker
variable in createMarker.  Try changing
marker = new GMarker(point);
to:
var marker = new GMarker(point);

  -- Larry

>
> thanks for any hints.
>
> rb

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