diff --git a/index.html b/index.html index d483b34e..369f5fba 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,10 @@ + +
diff --git a/package.json b/package.json index be894982..881ed974 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "ip-location": "^1.0.1", "leaflet": "^1.0.3", "leaflet-geosearch": "^2.4.0", + "leaflet.locatecontrol": "^0.61.0", "openstreetmap-tag-translations": "^1.0.0", "overpass-layer": "https://github.com/plepe/overpass-layer#marker", "sheet-router": "^4.2.3" diff --git a/src/index.js b/src/index.js index 40aa87cb..051d9669 100644 --- a/src/index.js +++ b/src/index.js @@ -34,6 +34,14 @@ window.onload = function() { }) map.addControl(searchControl) + // Geo location + L.control.locate({ + keepCurrentZoomLevel: true, + drawCircle: false, + drawMarker: false, + showPopup: false + }).addTo(map); + overpassFrontend = new OverpassFrontend('//overpass-api.de/api/interpreter', { timeGap: 10, effortPerRequest: 100