X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e0dd431e6c67a40ec1c15e7ae023df5eccb860b9..64f3a1a947e92436bf3a40d2e9e4a280a4f319f2:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index c294f13ef..a465e1449 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -49,7 +49,7 @@ L.OSM.layers = function(options) { .appendTo(item); map.whenReady(function() { - var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false}) + var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false, keyboard: false}) .addLayer(new layer.constructor({ apikey: layer.options.apikey })); miniMap.dragging.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);