mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
router now continues after confirmation
This commit is contained in:
parent
acc7cf6a22
commit
fd01e69075
3 changed files with 16 additions and 14 deletions
|
@ -124,9 +124,11 @@ export class Router {
|
|||
const [route] = this.router._routes;
|
||||
if (!route) return;
|
||||
|
||||
const { coordinates, summary: { totalDistance } } = route;
|
||||
const { coordinates } = route;
|
||||
this.pushPolyPoints(coordinates);
|
||||
this.router.setWaypoints([]);
|
||||
this.changeMode(MODES.POLY);
|
||||
const waypoints = this.router.getWaypoints().filter(({ latLng }) => !!latLng);
|
||||
this.router.setWaypoints(waypoints[waypoints.length-1]);
|
||||
|
||||
// this.changeMode(MODES.POLY);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue