[fix](trx-frontend-http): refresh map sources on live APRS

Rebuild the visible-source chips when live APRS, AIS, or VDES markers are first added so the map filter list updates without a page refresh.\n\nCo-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-13 07:24:09 +01:00
parent 66987a4070
commit c014f5cdc2
@@ -5323,6 +5323,7 @@ window.aprsMapAddStation = function(call, lat, lon, info, symbolTable, symbolCod
stationMarkers.set(call, entry);
if (aprsMap) {
_aprsAddMarkerToMap(call, entry);
rebuildMapLocatorFilters();
applyMapFilter();
}
}
@@ -5462,6 +5463,7 @@ window.aisMapAddVessel = function(msg) {
trackPoints: [nextPoint],
msg,
});
rebuildMapLocatorFilters();
applyMapFilter();
};
@@ -5496,6 +5498,7 @@ window.vdesMapAddPoint = function(msg) {
marker._vdesKey = key;
entry.marker = marker;
mapMarkers.add(marker);
rebuildMapLocatorFilters();
applyMapFilter();
};