Explicitly call Default Icon for Leaflet Marker

This commit is contained in:
2025-03-28 15:57:02 +01:00
parent 0d4c71926d
commit 4925e6b739

View File

@@ -22,7 +22,7 @@
maxZoom: 19,
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
const marker = L.marker([x, y]).addTo(map);
const marker = L.marker([x, y], { icon: new L.Icon.Default }).addTo(map);
if (children !== undefined)
marker.bindPopup(popupDiv, { closeOnClick: false }).openPopup();
});