diff options
author | Silvio <silvio@socioambiental.org> | 2013-05-06 11:33:27 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-05-06 11:33:27 -0300 |
commit | e7c6c4b1ef10d9808a68ffef67126e7082b11348 (patch) | |
tree | 9da9df2d0d60fd68e83f6ec86d7659314015d2ec | |
parent | ffa100d5acacebc42c376e2d95a3b6f4ecc616fe (diff) | |
download | gmap_arcgis_js-e7c6c4b1ef10d9808a68ffef67126e7082b11348.tar.gz gmap_arcgis_js-e7c6c4b1ef10d9808a68ffef67126e7082b11348.tar.bz2 |
Fixing closeInfoWindow behavior
-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(); } }, |