From 3515050f96ab85ea2be77676fa0a5cd46eb56fd4 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 13 Aug 2024 21:03:32 +0200 Subject: [PATCH] fix max dist for ptracks --- html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index 0a8e6d0..b701347 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -1332,7 +1332,7 @@ PlaneObject.prototype.updatePositionData = function(now, last, data, init) { if (this.position && SitePosition) { if (pTracks && this.sitedist) { this.sitedist = Math.max(ol.sphere.getDistance(SitePosition, this.position), this.sitedist); - } else if (!init) { + } else if (!init || pTracks) { this.sitedist = ol.sphere.getDistance(SitePosition, this.position); } }