aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-11-24 15:55:46 -0200
committerSilvio <silvio@socioambiental.org>2014-11-24 15:55:46 -0200
commit257af633a5b62b2e5557454e1044b9ce35cc17fa (patch)
tree394bf1438a9222402f74ebf752b21fccccc21814
parentfab344a1ac98774616705b1413ee93da08fffc2f (diff)
downloadgmap_arcgis_js-257af633a5b62b2e5557454e1044b9ce35cc17fa.tar.gz
gmap_arcgis_js-257af633a5b62b2e5557454e1044b9ce35cc17fa.tar.bz2
Cluster support on toggleMarkers()
-rw-r--r--gmap_arcgis.js6
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 = [];