Merge config profiles as we now include all in standalone zip
This commit is contained in:
parent
7d0a4db059
commit
5cc99949fd
1 changed files with 21 additions and 34 deletions
|
|
@ -15,6 +15,21 @@
|
||||||
if (hostname.endsWith('brouter.de')) {
|
if (hostname.endsWith('brouter.de')) {
|
||||||
// online service (brouter.de) configuration
|
// online service (brouter.de) configuration
|
||||||
|
|
||||||
|
BR.conf.host = origin;
|
||||||
|
BR.conf.profilesUrl = origin + '/brouter/profiles2/';
|
||||||
|
} else {
|
||||||
|
// desktop configuration
|
||||||
|
|
||||||
|
BR.conf.host = 'http://0.0.0.0:17777';
|
||||||
|
|
||||||
|
// Pre-loading selected profile disabled locally. Needs brouter-web to run on a
|
||||||
|
// local web server with the profiles in a subdirectory or allowing file access
|
||||||
|
// in the Browser (security!), see
|
||||||
|
// https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally
|
||||||
|
//BR.conf.profilesUrl = 'http://localhost:8000/profiles2/';
|
||||||
|
//BR.conf.profilesUrl = 'file://YOUR_PATH_TO/profiles2/';
|
||||||
|
}
|
||||||
|
|
||||||
BR.conf.profiles = [
|
BR.conf.profiles = [
|
||||||
'trekking',
|
'trekking',
|
||||||
'fastbike',
|
'fastbike',
|
||||||
|
|
@ -36,34 +51,6 @@
|
||||||
'hiking-beta'
|
'hiking-beta'
|
||||||
];
|
];
|
||||||
|
|
||||||
BR.conf.host = origin;
|
|
||||||
BR.conf.profilesUrl = origin + '/brouter/profiles2/';
|
|
||||||
} else {
|
|
||||||
// desktop configuration
|
|
||||||
|
|
||||||
BR.conf.profiles = [
|
|
||||||
'trekking',
|
|
||||||
'fastbike',
|
|
||||||
'car-eco',
|
|
||||||
'car-fast',
|
|
||||||
'shortest',
|
|
||||||
'moped',
|
|
||||||
'vm-forum-liegerad-schnell',
|
|
||||||
'vm-forum-velomobil-schnell',
|
|
||||||
'fastbike-lowtraffic',
|
|
||||||
'fastbike-asia-pacific'
|
|
||||||
];
|
|
||||||
|
|
||||||
BR.conf.host = 'http://0.0.0.0:17777';
|
|
||||||
|
|
||||||
// Pre-loading selected profile disabled locally. Needs brouter-web to run on a
|
|
||||||
// local web server with the profiles in a subdirectory or allowing file access
|
|
||||||
// in the Browser (security!), see
|
|
||||||
// https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally
|
|
||||||
//BR.conf.profilesUrl = 'http://localhost:8000/profiles2/';
|
|
||||||
//BR.conf.profilesUrl = 'file://YOUR_PATH_TO/profiles2/';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Removes default base layers when 'true'. Useful for only having custom layers (see below).
|
// Removes default base layers when 'true'. Useful for only having custom layers (see below).
|
||||||
BR.conf.clearBaseLayers = false;
|
BR.conf.clearBaseLayers = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue