Remove grey background behind custom map marker icon

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 18:48:01 +01:00
parent 0a758c0ccc
commit 187261170a
2 changed files with 7 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ function geocodeAndRender(address, mapEl) {
iconSize: [40, 40],
iconAnchor: [20, 40],
popupAnchor: [0, -40],
className: 'leaflet-marker-custom',
})
L.marker([lat, lon], { icon }).addTo(map).bindPopup('<b>' + address + '</b>').openPopup()