diff options
-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(); + } + } + } + }, } }; |