>           new google.maps.event.addListener( marker, 'click', function(e) {
>             new google.maps.event.trigger( map, 'click' );

Why try to trigger a map event ; just replace with code to do what you
want directly (pan to the marker's location) ?

> The problem with that is it will assign the last marker's position to every
> event object an the result is no matter the marker you click on

That will be due to not getting function closure on the 'marker'
variable ; there are many threads about this usually manifesting as
"all infowindows are the same"
See this example
http://code.google.com/apis/maps/documentation/javascript/examples/ev...
the important feature is removing the listener creation to a seperate
function, which allows for function closure on the content.  It's not
an easy concept.


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