diff options
-rw-r--r-- | gmap_arcgis.js | 4 |
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(); } }, |