fix(flights): a trail does not join its track history across a landing or take-off that was not seen

This commit is contained in:
Sameh Khamis committed 2026-11-13 12:53:18 -08:00
1 parent 693faae44e
commit 7e45d4d989
7 files changed
+215 -12

No files matched your search

+3
View File
@@ -87,6 +87,9 @@ export function createMilitarySnapshotRenderer({
// Drawn at an invented height: a trail seeded from history keeps no
// position for it.
inventedHeight: meta.renderAltitudeInvented === true,
// Whether this report was on the ground: a trail backfill joins it
// only across a landing or take-off it saw.
onGround: meta.onGround === true,
});
if (history.length > POSITION_HISTORY_LIMIT) {
history.shift();