fix routing profile query param

This commit is contained in:
vcoppe
2024-05-04 15:17:44 +02:00
parent 71d68a3b5c
commit 35b0adc7e5

View File

@@ -36,7 +36,7 @@ routingProfileSelectItem.subscribe((item) => {
export function route(points: Coordinates[]): Promise<TrackPoint[]> {
if (get(routing)) {
return getRoute(points, brouterProfiles[get(routingProfile).value], get(privateRoads));
return getRoute(points, brouterProfiles[get(routingProfile)], get(privateRoads));
} else {
return new Promise((resolve) => {
resolve(points.map(point => new TrackPoint({