added map boundaries based on municipality center

This commit is contained in:
2026-04-19 16:49:31 +02:00
parent b3879d812f
commit 1dfffd93e5

View File

@@ -48,7 +48,12 @@ map = L.map('map', {
center: MUNICIPALITY.center,
zoom: MUNICIPALITY.zoom,
minZoom: 10,
zoomControl: false, // Added manually for Position Control
maxBounds: [
[MUNICIPALITY.center[0] - 0.25, MUNICIPALITY.center[1] - 0.25],
[MUNICIPALITY.center[0] + 0.25, MUNICIPALITY.center[1] + 0.25]
],
maxBoundsViscosity: 0.8,
zoomControl: false,
attributionControl: true
});