Hi, I have a KML file which contains my placemarks. They load and work
fine. When an infoWindow is closed, I'd like the map to recenter
itself via the "closeclick" listener.

I have put this into my code:

google.maps.event.addListener(infowindow, "closeclick", function() {
        map.setCenter(new GLatLng(37.9,-95.5), 4);
          });

And nothing happens when I close the infoWindow. I'm wondering if it
is because I am loading my placemarks via the KML file?

Is there any specific way you are supposed to reference an infoWindow
when you don't have any marker or infoWindow code at all in your HTML
doc, just:

map.addOverlay(geoXml);

which does it all.

Thanks!

-jonathan



-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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