- Normalize longitude delta in trail_manager Haversine so wraps across 180/-180 no longer compute a near-global distance and spuriously split the trail into short-segment-filtered pieces. - Unwrap longitudes before building segments and drawing polylines in both the per-station TrailManager and the show_trail_line handler so a date-line crossing renders as a short hop instead of a line that wraps around the world. - Raise maxHopDistance (10 -> 100 km) and drop minSegmentPoints (3 -> 2) so legitimate fast movers (aircraft, balloons) and short valid hops are drawn instead of being dropped. - Unbind mousemove/mouseout handlers on a trail before removing it so queued events can't fire against discarded state. - Fix self.isValidCoordinate TypeError in updateMarker (function is module-level, not on the hook) and add coord validation to show_trail_line. - Null boundsTimer after clearTimeout for cleanup consistency. |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| vendor | ||