Center map view on current position
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
e516f9fce5
commit
a8264ac7db
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@
|
||||||
minZoom: 12
|
minZoom: 12
|
||||||
});
|
});
|
||||||
|
|
||||||
map.setView([latitude, longitude], 13);
|
var latlng = L.latLng(latitude, longitude);
|
||||||
|
map.setView(latlng, 13);
|
||||||
map.setMaxBounds(map.getBounds());
|
map.setMaxBounds(map.getBounds());
|
||||||
|
|
||||||
leaflet
|
leaflet
|
||||||
|
|
Loading…
Reference in a new issue