fixed config example

This commit is contained in:
muerwre 2019-03-05 17:01:44 +07:00
parent 18ccd32eea
commit ce4273f03a
3 changed files with 9 additions and 2 deletions

View file

@ -2,10 +2,16 @@ import { DEFAULT_PROVIDER, PROVIDERS } from '$constants/providers';
const API_ADDR = 'https://HOSTNAME.org:3000'; const API_ADDR = 'https://HOSTNAME.org:3000';
const OSRM_URL = 'https://HOSTNAME.org:5001/route/v1'; const OSRM_URL = 'https://HOSTNAME.org:5001/route/v1';
const OSRM_PROFILE = 'bike';
const OSRM_TEST_URL = ([south_west, north_east]: [LatLngLiteral, LatLngLiteral]) => (
`${OSRM_URL}/${OSRM_PROFILE}/${Object.values(south_west).join(',')};${Object.values(north_east).join(',')}`
);
export const CLIENT = { export const CLIENT = {
OSRM_URL, OSRM_URL,
API_ADDR, API_ADDR,
OSRM_TEST_URL,
OSRM_PROFILE,
STROKE_WIDTH: 5, STROKE_WIDTH: 5,
}; };

View file

@ -2,7 +2,7 @@
## BUGS ## BUGS
todo moving out the screen makes stickers editable again
## FEATURES ## FEATURES
@ -26,6 +26,7 @@
todo maybe: map preview on save (nope) todo maybe: map preview on save (nope)
done maybe: stickers clusterization? done maybe: stickers clusterization?
done moving out the screen makes stickers editable again
## DONE ## DONE
done fix arrows (can't reproduce now :-( ) done fix arrows (can't reproduce now :-( )

View file

@ -38,7 +38,7 @@ export class Router {
this.router = Routing.control({ this.router = Routing.control({
serviceUrl: CLIENT.OSRM_URL, serviceUrl: CLIENT.OSRM_URL,
profile: 'bike', profile: CLIENT.OSRM_PROFILE,
fitSelectedRoutes: false, fitSelectedRoutes: false,
showAlternatives: false, showAlternatives: false,
routeLine, routeLine,