The 'dropping to bottom of screen' effect was caused by ALL markers animating on every data refresh, not just truly new events. Root cause: - On first plugin enable: previousQuakeIds/previousStrikeIds is empty - Every marker looked 'new' and animated - On data refresh (every 5 min): all markers recreated and animated - Result: appeared as if markers were 'dropping' or 'falling' Solution: - Added isFirstLoad ref flag for both plugins - First load: populate previousIds but DON'T animate - Subsequent loads: only animate truly NEW events - isNew = !isFirstLoad && !previousIds.has(id) Behavior now: - Enable plugin: Markers appear static (no animation) - Wait 5 min refresh: Still static (no animation) - NEW earthquake/strike detected: ONLY that one animates - Result: Clean, professional, no 'dropping' effect Applies to: - Earthquakes: Fixed - Lightning: Fixedpull/82/head
parent
6afe508af3
commit
53ea4ad473
Loading…
Reference in new issue