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); } }