Add maxZoom to marker clusterer in WCF.Location.GoogleMaps.LargeMap
authorMatthias Schmidt <gravatronics@live.com>
Fri, 25 Apr 2014 13:58:40 +0000 (15:58 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 25 Apr 2014 13:58:40 +0000 (15:58 +0200)
wcfsetup/install/files/js/WCF.Location.js

index c08ac45d40a57ce8ca210a9f471df32f481cadc3..d7e38bc5a22bb17868c4e631538e60fc3985a007 100644 (file)
@@ -424,7 +424,9 @@ WCF.Location.GoogleMaps.LargeMap = WCF.Location.GoogleMaps.Map.extend({
                        this._locationSearch = new WCF.Location.GoogleMaps.LocationSearch(locationSearchInputSelector, $.proxy(this._centerMap, this));
                }
                
-               this._markerClusterer = new MarkerClusterer(this._map, this._markers);
+               this._markerClusterer = new MarkerClusterer(this._map, this._markers, {
+                       maxZoom: 17
+               });
                
                this._proxy = new WCF.Action.Proxy({
                        showLoadingOverlay: false,