diff options
author | Silvio <silvio@socioambiental.org> | 2014-11-24 15:55:46 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-11-24 15:55:46 -0200 |
commit | 257af633a5b62b2e5557454e1044b9ce35cc17fa (patch) | |
tree | 394bf1438a9222402f74ebf752b21fccccc21814 | |
parent | fab344a1ac98774616705b1413ee93da08fffc2f (diff) | |
download | gmap_arcgis_js-257af633a5b62b2e5557454e1044b9ce35cc17fa.tar.gz gmap_arcgis_js-257af633a5b62b2e5557454e1044b9ce35cc17fa.tar.bz2 |
Cluster support on toggleMarkers()
-rw-r--r-- | gmap_arcgis.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index edc0ea1..aaa0446 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -307,8 +307,12 @@ function gmapArcgis(config) { addMarkers: function(element, cluster) { var self = this; + if (cluster == undefined) { + cluster = false; + } + if (this.config['markers'][element].overlay != undefined) { - this.toggleMarkers(element); + this.toggleMarkers(element, false, cluster); return; } else { this.config['markers'][element].overlay = []; |