> When I click on any of the markers the final infowindow in the loop always
> opens.

I don't see any loop in your code.
You re-use the same variable 'infowindow' twice, so its content gets
left at the last value for whatever may get clicked later.

There are in fact a lot of similar posts in the group that might be
worth looking at
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=last+infowindow
Well worth looking into 'function closure' for the easy fix for your
problem

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