This is just an update to a question posed at a closed thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/e9a001776e2f9e6a?hl=en&tvc=2&q=%22listener+on+InfoWindow+closeclick%22&pli=1

Near the end were questions on panning the map back to the infoWindow
anchor, which I had a v2 solution for, but not 3 at the time. Here's
my solution in v3, in case anyone's interested:

   google.maps.event.addListener(infowindow,'closeclick', function() {
                map.panTo(infowindow.getPosition());
    });

This, of course, assumes you already have your map defined ("map"
above) and your infowindow defined ("infowindow" above) as a new
google.maps.InfoWindow. Pretty easy, and one less line of code than
the v2 solution!

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