Major visual improvements and Lightning stability fix: LIGHTNING FIXES: - Fixed 'dropping' issue: Stable IDs based on rounded location + minute - Was generating new IDs every refresh (timestamp-based) - Now: ID = rounded_time + rounded_lat + rounded_lon - Result: Same strikes keep same ID across refreshes VISUAL IMPROVEMENTS - Icons instead of circles: Earthquakes (🌋): - Replaced circle markers with volcano emoji icon - Size scales with magnitude (12-36px) - Color-coded by magnitude (yellow → dark red) - NEW: Shaking animation with rotation and translation - Shake effect: vibrates at exact location (no sliding) Lightning (⚡): - Replaced circle markers with lightning bolt emoji icon - Size scales with intensity (12-32px) - Color-coded by age (gold → brown) - Bright flash animation with gold glow - Icons much more recognizable than circles ANIMATION IMPROVEMENTS: - Earthquake: Shakes in place with 0-2px movement + rotation - Lightning: Flashes with brightness + gold shadow - Both: Icons stay at exact coordinates - No more 'dropping' or 'sliding' effects Benefits: - Immediately recognizable event types - Professional appearance - Better visual hierarchy - Icons scale better at different zoom levelspull/82/head
parent
53ea4ad473
commit
a2a9eb20ac
Loading…
Reference in new issue