Skip to content

Commit 061235a

Browse files
no splice of old position in latest position mode
1 parent 87f1c47 commit 061235a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,9 @@ function addPosition(position) {
15941594
graphAddPosition(vcallsign, position);
15951595

15961596
}
1597+
else if(wvar.mode == "Position") { // we don't splice old postions in latest position mode
1598+
return;
1599+
}
15971600
else if(vehicle.positions_ts.indexOf(new_ts) == -1) { // backlog packets, need to splice them into the array
15981601
// find out the index at which we should insert the new point
15991602
var xref = vehicle.positions_ts;

0 commit comments

Comments
 (0)