From be5e23452b4e89e7eec9f264e22db86dbe5f92c0 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 16 Dec 2021 02:32:24 +0100 Subject: [PATCH] correct icon rotation when playing back traces of aircraft on ground --- html/planeObject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index 0b9a832..2c236e1 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -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;