From eb0c98d5c7ee4961f629f5c38a78c80c87cb1193 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 9 Dec 2014 16:18:55 -0200 Subject: Support for MarkerClustererPlus' maxZoom --- gmap_arcgis.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3