Same issue as earthquakes - all lightning markers were continuously animating instead of just new strikes. Fix: - Remove infinite animation from .lightning-strike CSS class - All markers start with static 'lightning-strike' class - For new strikes: add marker to map first, then animate - Wait 10ms for DOM element, then add 'lightning-strike-new' class - Remove animation class after 0.8s (animation duration) - Added try/catch with console.warn for safety - Remove duplicate marker.addTo(map) call Result: - New strikes: Flash animation (0.8s) + pulse ring (2s) - After animation: Marker becomes static - Old strikes: No animation, always staticpull/82/head
parent
895f5c0c28
commit
2b9e9107e3
Loading…
Reference in new issue