aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = [];