[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:
@@ -5323,6 +5323,7 @@ window.aprsMapAddStation = function(call, lat, lon, info, symbolTable, symbolCod
|
|||||||
stationMarkers.set(call, entry);
|
stationMarkers.set(call, entry);
|
||||||
if (aprsMap) {
|
if (aprsMap) {
|
||||||
_aprsAddMarkerToMap(call, entry);
|
_aprsAddMarkerToMap(call, entry);
|
||||||
|
rebuildMapLocatorFilters();
|
||||||
applyMapFilter();
|
applyMapFilter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5462,6 +5463,7 @@ window.aisMapAddVessel = function(msg) {
|
|||||||
trackPoints: [nextPoint],
|
trackPoints: [nextPoint],
|
||||||
msg,
|
msg,
|
||||||
});
|
});
|
||||||
|
rebuildMapLocatorFilters();
|
||||||
applyMapFilter();
|
applyMapFilter();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5496,6 +5498,7 @@ window.vdesMapAddPoint = function(msg) {
|
|||||||
marker._vdesKey = key;
|
marker._vdesKey = key;
|
||||||
entry.marker = marker;
|
entry.marker = marker;
|
||||||
mapMarkers.add(marker);
|
mapMarkers.add(marker);
|
||||||
|
rebuildMapLocatorFilters();
|
||||||
applyMapFilter();
|
applyMapFilter();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user