From 1402b6492c677daf3aa2aea932bb210e49a44b02 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 30 Apr 2013 16:00:37 -0300 Subject: Close all infoWindows before open another --- gmap_arcgis.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index f03a241..24c2608 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -275,6 +275,7 @@ function gmapArcgis(config) { var attributes = feature.attributes; google.maps.event.addListener(marker, 'click', function() { + self.closeInfoWindows(); infowindow.setContent(content(attributes)); infowindow.open(self.map, marker); }); @@ -565,6 +566,7 @@ function gmapArcgis(config) { }] }; + self.closeInfoWindows(); self.config.panoramio.photoWidget.setRequest(photoRequestOptions); self.config.panoramio.photoWidget.setPosition(0); self.config.panoramio.infoWindow.setPosition(e.latLng); -- cgit v1.2.3