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,7 +1,7 @@
import { map, tileLayer } from 'leaflet';
import 'leaflet/dist/leaflet.css';
import 'leaflet-editable';
import { PROVIDER } from '$config';
import { PROVIDER } from '$config/frontend';
import { DEFAULT_PROVIDER, PROVIDERS } from '$constants/providers';
export class Map {

View file

@ -2,7 +2,7 @@ import L from 'leaflet';
import 'leaflet-geometryutil';
import { simplify } from '$utils/simplify';
import { findDistance, middleCoord } from '$utils/geom';
import { CONFIG } from '$config';
import { CLIENT } from '$config/frontend';
const polyStyle = {
color: 'url(#activePathGradient)',
@ -50,7 +50,7 @@ export class Poly {
latlngs[i - 1],
[mid.lat, mid.lng]
],
{ color: 'none', weight: CONFIG.STROKE_WIDTH }
{ color: 'none', weight: CLIENT.STROKE_WIDTH }
).addTo(this.arrows);
slide._path.setAttribute('marker-end', 'url(#long-arrow)');

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,