From 6262e5695e616ebf4101b36cc48199dfa1bf3bf2 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 4 Apr 2025 17:40:29 +0200 Subject: [PATCH] Might have fixed an error in some cases with futuremarker --- assets/js/sections/flightpath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sections/flightpath.js b/assets/js/sections/flightpath.js index b689f6f82..801e22d4b 100644 --- a/assets/js/sections/flightpath.js +++ b/assets/js/sections/flightpath.js @@ -267,7 +267,7 @@ Satellite.prototype.update = function () { // Compute paths with Antimeridian handling let { pastSegments, futureSegments } = computePath(this._satrec, this._date, 100, 100, 10); pastmarker.setLatLng({lat: pastSegments[0][0][0], lng: pastSegments[0][0][1]}); - futuremarker.setLatLng({lat: futureSegments[(futureSegments.length - 1)][futureSegments[(futureSegments.length - 1)].length - 1][0], lng: futureSegments[(futureSegments.length - 1)][futureSegments[(futureSegments.length - 1)].length - 1][(futureSegments.length - 1)]}); + futuremarker.setLatLng({lat: futureSegments[(futureSegments.length - 1)][futureSegments[(futureSegments.length - 1)].length - 1][0], lng: futureSegments[(futureSegments.length - 1)][futureSegments[(futureSegments.length - 1)].length - 1][1]}); // Remove old polylines if they exist if (this._pastTrajectories) {