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 e9e4070..89ced12 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -394,9 +394,13 @@ function gmapArcgis(config) {
}
if (cluster == true) {
+ var maxZoom = (self.config['markers'][element].markersMaxZoom != undefined) ? self.config['markers'][element].markersMaxZoom : null;
self.config['markers'][element].cluster = new MarkerClusterer(self.map,
self.config['markers'][element].overlay,
- { ignoreHidden: true });
+ {
+ ignoreHidden: true,
+ maxZoom: maxZoom,
+ });
}
self.unblockUI('markers_' + element);