mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
replacing gpx tracks
This commit is contained in:
parent
acca2aba14
commit
1d45e65434
5 changed files with 86 additions and 56 deletions
|
@ -294,7 +294,7 @@ function* routerSubmit() {
|
|||
const route: ReturnType<typeof selectMapRoute> = yield select(selectMapRoute);
|
||||
const latlngs: LatLng[] = path(['_routes', 0, 'coordinates'], OsrmRouter);
|
||||
|
||||
const coordinates = simplify({ map: MainMap, latlngs });
|
||||
const coordinates = simplify(latlngs);
|
||||
|
||||
yield put(mapSetRoute([...route, ...coordinates]));
|
||||
OsrmRouter.setWaypoints([]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue