mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Might have fixed an error in some cases with futuremarker
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user