aprs.me/assets/js
Graham McIntire cf78298f46
Fix trail lines not connecting historical positions
When changing trail duration and historical data settings, historical positions
would show up on the map but trail lines wouldn't connect them. This was caused
by a mismatch between trail ID generation and callsign extraction.

## Changes

- Fix getTrailId() to properly extract base callsigns from historical marker IDs
- Add setTrailDuration() method to TrailManager for dynamic duration updates
- Add LiveView event to synchronize trail duration changes with client
- Add comprehensive tests for historical ID handling

## Problem
Historical markers have IDs like "hist_CALLSIGN_123" but getTrailId() was
returning the full ID while TrailManager.extractBaseCallsign() extracted just
"CALLSIGN", creating separate trails instead of connected ones.

## Solution
Updated getTrailId() to extract base callsigns from historical IDs using the
same logic as TrailManager, ensuring all positions from the same station use
the same trail ID and connect properly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 08:31:16 -05:00
..
features Fix trail lines not connecting historical positions 2025-07-21 08:31:16 -05:00
hooks cleanup 2025-07-18 14:44:52 -05:00
types Fix JavaScript error when navigating from map to weather page 2025-07-20 08:19:51 -05:00
app.js Use Sentry Loader script to handle CORS errors gracefully 2025-07-18 15:51:21 -05:00
map.ts Fix trail lines not connecting historical positions 2025-07-21 08:31:16 -05:00
map_fixes.ts Remove debug console.log statements from JavaScript files 2025-07-18 15:37:05 -05:00
map_helpers.ts Fix trail lines not connecting historical positions 2025-07-21 08:31:16 -05:00
topbar.js js tweak 2025-07-05 13:16:37 -05:00