mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 01:52:12 +00:00
fix speed computation when no time data
This commit is contained in:
@@ -1982,7 +1982,8 @@ function timeWindowSmoothing(
|
||||
): number[] {
|
||||
return windowSmoothing(
|
||||
points.length,
|
||||
(index1, index2) => points[index2].time?.getTime() - points[index1].time?.getTime() || 0,
|
||||
(index1, index2) =>
|
||||
points[index2].time?.getTime() - points[index1].time?.getTime() || 2 * window,
|
||||
window,
|
||||
compute
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user