Clear markers and don't color rows if the aircraft sees no positions for 60s,

even if they are still receiving other messages.

The marker/trail can be redisplayed by selecting the plane from the table.
This commit is contained in:
Oliver Jowett 2015-07-15 17:07:28 +01:00
parent 45d645a864
commit b4490c7b47
2 changed files with 11 additions and 10 deletions
public_html

View file

@ -326,14 +326,16 @@ PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp)
}
} else {
this.visible = true;
if (this.position !== null) {
if (this.position !== null && (this.selected || this.seen_pos < 60)) {
if (this.updateTrack(receiver_timestamp - last_timestamp + (this.position_from_mlat ? 30 : 5))) {
this.updateLines();
this.updateMarker(true);
} else {
this.updateMarker(false); // didn't move
}
}
} else {
this.clearMarker();
}
}
};