Allow wrapped map panning

This commit is contained in:
André Rüegger 2026-06-01 02:54:36 +02:00
parent 8179c17e22
commit 8d92d64fa3

View File

@ -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:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
noWrap: true,
},
).addTo(map);