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:
@@ -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); }
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user