feat: Plus und Minus Zoom Icons
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user