fix(aprs): correct aprsMarkers variable name and reset aprsMapOverlays on teardown

This commit is contained in:
James Smith
2026-04-13 23:15:53 +01:00
parent 24f12b1220
commit ac2f7ea032
+2 -1
View File
@@ -10179,7 +10179,7 @@
aprsMapOverlays = MapUtils.addTacticalOverlays(aprsMap, { aprsMapOverlays = MapUtils.addTacticalOverlays(aprsMap, {
hudPanels: { hudPanels: {
modeName: 'APRS', modeName: 'APRS',
getContactCount: () => Object.keys(aprsStations).length, getContactCount: () => Object.keys(aprsMarkers).length,
}, },
scaleBar: true, scaleBar: true,
}); });
@@ -10225,6 +10225,7 @@
} catch (_) {} } catch (_) {}
aprsMap = null; aprsMap = null;
window.aprsMap = null; window.aprsMap = null;
aprsMapOverlays = null;
} }
aprsMarkers = {}; aprsMarkers = {};
aprsUserMarker = null; aprsUserMarker = null;