diff options
author | Silvio <silvio@socioambiental.org> | 2013-04-30 16:00:37 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-04-30 16:00:37 -0300 |
commit | 1402b6492c677daf3aa2aea932bb210e49a44b02 (patch) | |
tree | 01da1fbfeb43ff7a3f28891ae29c4e3ef8cb3eb0 | |
parent | 59ad01601c5cd7fd89ff39048b4c34a61be1abba (diff) | |
download | gmap_arcgis_js-1402b6492c677daf3aa2aea932bb210e49a44b02.tar.gz gmap_arcgis_js-1402b6492c677daf3aa2aea932bb210e49a44b02.tar.bz2 |
Close all infoWindows before open another
-rw-r--r-- | gmap_arcgis.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); |