diff options
author | Silvio <silvio@socioambiental.org> | 2013-04-17 18:35:02 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-04-17 18:35:02 -0300 |
commit | ed410cb60ab850e641ca0672243d43154dbb8337 (patch) | |
tree | 9e4df933ebabc529fad9d2fb80d0cd9efae9cc66 | |
parent | 865ca318ac1584a14d2088772de363f8006c15db (diff) | |
download | gmap_arcgis_js-ed410cb60ab850e641ca0672243d43154dbb8337.tar.gz gmap_arcgis_js-ed410cb60ab850e641ca0672243d43154dbb8337.tar.bz2 |
Adding closeInfoWindows() method
-rw-r--r-- | gmap_arcgis.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 6b58351..35fb4e8 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -496,5 +496,16 @@ function gmapArcgis(config) { return params.overlay; }); }, + + // Close all registered infoWindows + closeInfoWindows: function() { + for (overlay in [ 'layers', 'markers' ]) { + for (element in this.config[overlay]) { + if (this.config[overlay][element].infowindow != undefined) { + this.config[overlay][element].infowindow.close(); + } + } + } + }, } }; |