From e7c6c4b1ef10d9808a68ffef67126e7082b11348 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 6 May 2013 11:33:27 -0300 Subject: Fixing closeInfoWindow behavior --- gmap_arcgis.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } }, -- cgit v1.2.3