We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16241da commit 71436b5Copy full SHA for 71436b5
1 file changed
src/styles/leaflet-custom.css
@@ -34,9 +34,11 @@
34
}
35
36
/* Custom marker animations */
37
-.leaflet-marker-icon {
38
- animation: markerPulse 2s infinite;
39
-}
+/* IMPORTANT: Do not animate/transform the marker container itself, as Leaflet
+ uses CSS transforms on .leaflet-marker-icon to position markers. Animating
+ this element (e.g., scale) will override Leaflet's transform and cause
40
+ markers to drift when zooming or panning. If you want a pulse effect,
41
+ animate a child element inside your custom icon HTML instead. */
42
43
@keyframes markerPulse {
44
0% {
0 commit comments