correct icon rotation when playing back traces of aircraft on ground

This commit is contained in:
Matthias Wirth
2021-12-16 02:32:24 +01:00
parent ec9f06c49d
commit be5e23452b

View File

@@ -1094,8 +1094,9 @@ PlaneObject.prototype.processTrace = function() {
if (!traceOpts.showTime) {
this.updateTrack(_now, _last, true, stale);
} else if (this.track == null && lastPosition) {
} else if (this.track == null && lastPosition && this.request_rotation_from_track) {
this.rotation = bearingFromLonLat(lastPosition, this.position);
this.request_rotation_from_track = false;
}
_last = _now;