mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 00:32:33 +00:00
avoid 3d effect when no pitch but keep elevation queries working
This commit is contained in:
@@ -124,7 +124,7 @@ function getIntermediatePoints(points: Coordinates[]): Promise<TrackPoint[]> {
|
||||
|
||||
route.forEach((point) => {
|
||||
point.setSurface("unknown");
|
||||
point.ele = get(map)?.queryTerrainElevation(point.getCoordinates()) ?? undefined;
|
||||
point.ele = get(map)?.queryTerrainElevation(point.getCoordinates(), { exaggerated: false }) ?? undefined;
|
||||
});
|
||||
|
||||
return new Promise((resolve) => resolve(route));
|
||||
|
Reference in New Issue
Block a user