aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-12-09 16:18:55 -0200
committerSilvio <silvio@socioambiental.org>2014-12-09 16:18:55 -0200
commiteb0c98d5c7ee4961f629f5c38a78c80c87cb1193 (patch)
treecca92f87967c3617b56fae1f32287c9c441b0ed3
parentd424102b6f95e5fa6bf63b349daaea42147cf77a (diff)
downloadgmap_arcgis_js-eb0c98d5c7ee4961f629f5c38a78c80c87cb1193.tar.gz
gmap_arcgis_js-eb0c98d5c7ee4961f629f5c38a78c80c87cb1193.tar.bz2
Support for MarkerClustererPlus' maxZoom
-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);