fix routing profile query param
This commit is contained in:
parent
71d68a3b5c
commit
35b0adc7e5
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue