diff --git a/www/assets/js/map_leaflet.js b/www/assets/js/map_leaflet.js index 2add227..f530065 100644 --- a/www/assets/js/map_leaflet.js +++ b/www/assets/js/map_leaflet.js @@ -39,7 +39,7 @@ function leafletMap() { map.packagelayer.addTo(map); - map.setView({lat: 0, lng: 0}, 1); + map.setView({lat: userPosition.coords.latitude, lng: userPosition.coords.longitude}, 2); map.setMapHeading = function (heading) { diff --git a/www/pages/map.html b/www/pages/map.html index 48f5013..7dc8860 100644 --- a/www/pages/map.html +++ b/www/pages/map.html @@ -41,14 +41,7 @@