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

@@ -341,6 +341,12 @@ e-ticket-editor {
border-bottom: none; border-bottom: none;
} }
/* ===== Leaflet custom marker ===== */
.leaflet-marker-custom {
background: none !important;
border: none !important;
}
/* ===== Marquee ===== */ /* ===== Marquee ===== */
@keyframes marquee { @keyframes marquee {
0% { transform: translateX(0); } 0% { transform: translateX(0); }

View File

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