X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/db7374f2bbdd0b3ee0f3cb0a9cca84f9c72cffb5..e58a5c69d3e7cdedfcf6a056fdb74aa505c5e285:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 9f2e50a6f..eedf718d3 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -50,7 +50,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({ apikey: layer.options.apikey })); miniMap.dragging.disable(); miniMap.touchZoom.disable(); @@ -176,6 +176,7 @@ L.OSM.layers = function(options) { addOverlay(map.noteLayer, 'notes', OSM.MAX_NOTE_REQUEST_AREA); addOverlay(map.dataLayer, 'data', OSM.MAX_REQUEST_AREA); + addOverlay(map.gpsLayer, 'gps', Number.POSITIVE_INFINITY); } options.sidebar.addPane($ui);