fix max dist for ptracks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user