mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-27 10:37:17 +00:00
fix routing profile query param
This commit is contained in:
1 parent
71d68a3b5c
commit
35b0adc7e5
1 file changed
+1
-1
@@ -36,7 +36,7 @@ routingProfileSelectItem.subscribe((item) => {
|
|||||||
|
|
||||||
export function route(points: Coordinates[]): Promise<TrackPoint[]> {
|
export function route(points: Coordinates[]): Promise<TrackPoint[]> {
|
||||||
if (get(routing)) {
|
if (get(routing)) {
|
||||||
return getRoute(points, brouterProfiles[get(routingProfile).value], get(privateRoads));
|
return getRoute(points, brouterProfiles[get(routingProfile)], get(privateRoads));
|
||||||
} else {
|
} else {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
resolve(points.map(point => new TrackPoint({
|
resolve(points.map(point => new TrackPoint({
|
||||||
|
|||||||
Reference in new issue
Block a user