feat: Plus und Minus Zoom Icons

This commit is contained in:
ISA
2025-09-16 12:12:31 +02:00
parent 051dd4c306
commit 31c770f778
14 changed files with 192 additions and 31 deletions

View File

@@ -125,6 +125,7 @@ export const initializeMap = (
zoom: mapZoom,
minZoom: minZoom,
maxZoom: maxZoom,
// Disable default position; we'll add our own control at bottom-right
zoomControl: false,
dragging: true,
contextmenu: true,
@@ -142,6 +143,13 @@ export const initializeMap = (
initMap.dragging.enable();
// Add visible +/- zoom control bottom-right (playwright-friendly)
try {
L.control
.zoom({ position: "bottomright" })
.addTo(initMap);
} catch (_) {}
L.tileLayer(tileLayerUrl, {
attribution: "© OpenStreetMap contributors",
tileSize: 256,