On Sep 16, 12:24 pm, jonathan <[email protected]> wrote: > 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); > });
What is infowindow? Please read and follow the posting guidelines and post a _link_ to your map that shows the problem, not incomplete code snippets: http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines http://groups.google.com/group/google-maps-api/web/why-including-a-link-is-critical -- Larry > > 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.
