Set visible=false if we don't display a marker due to stale position;
this avoids markers briefly blinking back in on zoom.
This commit is contained in:
parent
bfa70415a3
commit
4eb8e3d96a
|
@ -445,8 +445,8 @@ PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp)
|
|||
selectPlaneByHex(null,false);
|
||||
}
|
||||
} else {
|
||||
this.visible = true;
|
||||
if (this.position !== null && (this.selected || this.seen_pos < 60)) {
|
||||
this.visible = true;
|
||||
if (this.updateTrack(receiver_timestamp - last_timestamp + (this.position_from_mlat ? 30 : 5))) {
|
||||
this.updateLines();
|
||||
this.updateMarker(true);
|
||||
|
@ -455,6 +455,7 @@ PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp)
|
|||
}
|
||||
} else {
|
||||
this.clearMarker();
|
||||
this.visible = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue