aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-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();
}
},