|
|
@ -92,12 +92,9 @@ function updateMap() {
|
|
|
|
|
|
|
|
|
|
|
|
function recenterMapPosition() {
|
|
|
|
function recenterMapPosition() {
|
|
|
|
var zoom = 13;
|
|
|
|
var zoom = 13;
|
|
|
|
if (userposition.coords.accuracy < 100) {
|
|
|
|
if (userposition.coords.accuracy < 1000) {
|
|
|
|
zoom = 15;
|
|
|
|
zoom = 15;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (userposition.coords.accuracy < 50) {
|
|
|
|
|
|
|
|
zoom = 16;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
leafletmap.setView([userposition.coords.latitude, userposition.coords.longitude], zoom);
|
|
|
|
leafletmap.setView([userposition.coords.latitude, userposition.coords.longitude], zoom);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|