aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-05-06 11:33:27 -0300
committerSilvio <silvio@socioambiental.org>2013-05-06 11:33:27 -0300
commite7c6c4b1ef10d9808a68ffef67126e7082b11348 (patch)
tree9da9df2d0d60fd68e83f6ec86d7659314015d2ec
parentffa100d5acacebc42c376e2d95a3b6f4ecc616fe (diff)
downloadgmap_arcgis_js-e7c6c4b1ef10d9808a68ffef67126e7082b11348.tar.gz
gmap_arcgis_js-e7c6c4b1ef10d9808a68ffef67126e7082b11348.tar.bz2
Fixing closeInfoWindow behavior
-rw-r--r--gmap_arcgis.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 289331f..f315b27 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -373,7 +373,9 @@ function gmapArcgis(config) {
}
// Close the infoWindow
- if (closeInfoWindow == true && this.config['markers'][element].infowindow != undefined) {
+ if (closeInfoWindow == true && this.config['markers'] != undefined
+ && this.config['markers'][element] != undefined
+ && this.config['markers'][element].infowindow != undefined) {
this.config['markers'][element].infowindow.close();
}
},