Fix default marker clusterer image path when using HTTPS
authorMatthias Schmidt <gravatronics@live.com>
Mon, 20 Apr 2015 15:40:55 +0000 (17:40 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 20 Apr 2015 15:40:55 +0000 (17:40 +0200)
wcfsetup/install/files/js/WCF.Location.js

index 1bd98036d5c20a927c706d304e3420ac9dd4021f..4fb601dea0c8bf597bfef7dcf3646a163cf6e259 100644 (file)
@@ -458,7 +458,9 @@ WCF.Location.GoogleMaps.LargeMap = WCF.Location.GoogleMaps.Map.extend({
                }
                
                this._markerClusterer = new MarkerClusterer(this._map, this._markers, {
-                       maxZoom: 17
+                       maxZoom: 17,
+                       // replace default value for https support
+                       imagePath: MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_.replace(/^http:/, '')
                });
                
                this._markerSpiderfier = new OverlappingMarkerSpiderfier(this._map, {