mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
fallback elevation value for smoothing and after routing
This commit is contained in:
@@ -73,7 +73,7 @@ async function getRoute(points: Coordinates[], brouterProfile: string, privateRo
|
||||
lat: coord[1],
|
||||
lon: coord[0]
|
||||
},
|
||||
ele: coord[2] ?? undefined
|
||||
ele: coord[2] ?? (i > 0 ? route[i - 1].ele : 0)
|
||||
}));
|
||||
route[route.length - 1].setSurface(surface)
|
||||
|
||||
|
Reference in New Issue
Block a user