feat: refresh trail line when trail duration changes

- Regenerate trail line after trail duration update
- Trail line now respects trail duration setting
This commit is contained in:
Graham McIntire 2026-02-27 13:49:18 -06:00
parent 464ba84202
commit 9a071b6e3a
No known key found for this signature in database

View file

@ -535,6 +535,14 @@ defmodule AprsmeWeb.MapLive.Index do
# Trigger cleanup to remove packets that are now outside the new duration
send(self(), :cleanup_old_packets)
# If tracking a callsign at low zoom, refresh the trail line with new duration
socket =
if socket.assigns.tracked_callsign != "" and socket.assigns.map_zoom <= 8 do
DisplayManager.send_trail_line_for_tracked_callsign(socket)
else
socket
end
{:noreply, socket}
end