mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
fixed config paths
This commit is contained in:
parent
9c0038f0a3
commit
bf1b92fdf1
18 changed files with 92 additions and 124 deletions
|
@ -1,6 +1,6 @@
|
|||
import L from 'leaflet';
|
||||
import Routing from 'leaflet-routing-machine/src/index';
|
||||
import { CONFIG } from '$config';
|
||||
import { CLIENT } from '$config/frontend';
|
||||
import { DomMarker } from '$utils/DomMarker';
|
||||
|
||||
export class Router {
|
||||
|
@ -22,7 +22,7 @@ export class Router {
|
|||
}).on('linetouched', this.lockPropagations);
|
||||
|
||||
this.router = Routing.control({
|
||||
serviceUrl: CONFIG.OSRM_URL,
|
||||
serviceUrl: CLIENT.OSRM_URL,
|
||||
profile: 'bike',
|
||||
fitSelectedRoutes: false,
|
||||
routeLine,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue