]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.layers.js
Implement long URL option, toggling, and labeling for share
[rails.git] / app / assets / javascripts / leaflet.layers.js
index ea0bf63a02f62516c809cd6dc83f2166d511878e..9841b0651f0ef93f31ba7d1e83e3b3668d375218 100644 (file)
@@ -89,7 +89,7 @@ L.OSM.layers = function(options) {
 
       map.whenReady(function() {
         var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false})
-          .addLayer(new layer.constructor);
+          .addLayer(new layer.constructor());
 
         miniMap.dragging.disable();
         miniMap.touchZoom.disable();