X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c073f15f5c775d00f3628c74a8bc048a2f1e6980..73170726e2e1c6f5dcbb649f82c4a845b9d6e980:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 82efab506..35b958c7a 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -14,7 +14,7 @@ L.OSM.layers = function (options) { var buttonContainer = $("
") .appendTo(baseSection); - var mapContainer = $("
") + var mapContainer = $("
") .appendTo(buttonContainer); var input = $("") @@ -29,7 +29,7 @@ L.OSM.layers = function (options) { map.whenReady(function () { var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false }) - .addLayer(new layer.constructor({ apikey: layer.options.apikey })); + .addLayer(new layer.constructor(layer.options)); miniMap.dragging.disable(); miniMap.touchZoom.disable();