Allow wrapped map panning
This commit is contained in:
parent
8179c17e22
commit
8d92d64fa3
@ -876,18 +876,12 @@
|
||||
function initMap() {
|
||||
map = L.map("map", {
|
||||
worldCopyJump: true,
|
||||
maxBounds: [
|
||||
[-85, -180],
|
||||
[85, 180],
|
||||
],
|
||||
maxBoundsViscosity: 1.0,
|
||||
}).setView([46.8182, 8.2275], 8);
|
||||
L.tileLayer(
|
||||
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
{
|
||||
attribution:
|
||||
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
noWrap: true,
|
||||
},
|
||||
).addTo(map);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user