fixed config paths

This commit is contained in:
muerwre 2018-12-03 15:35:07 +07:00
parent 9c0038f0a3
commit bf1b92fdf1
18 changed files with 92 additions and 124 deletions

View file

@ -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,