move URL host to config
This commit is contained in:
parent
57414cff59
commit
5446bec15e
2 changed files with 6 additions and 5 deletions
|
|
@ -1,11 +1,8 @@
|
|||
|
||||
BR.HOST = 'http://localhost:17777';
|
||||
|
||||
L.BRouter = L.Class.extend({
|
||||
statics: {
|
||||
// /brouter?lonlats=1.1,1.2|2.1,2.2|3.1,3.2|4.1,4.2&nogos=-1.1,-1.2,1|-2.1,-2.2,2&profile=shortest&alternativeidx=1&format=kml
|
||||
URL_TEMPLATE: BR.HOST + '/brouter?lonlats={lonlats}&nogos={nogos}&profile={profile}&alternativeidx={alternativeidx}&format={format}',
|
||||
URL_PROFILE_UPLOAD: BR.HOST + '/brouter/profile',
|
||||
URL_TEMPLATE: BR.conf.host + '/brouter?lonlats={lonlats}&nogos={nogos}&profile={profile}&alternativeidx={alternativeidx}&format={format}',
|
||||
URL_PROFILE_UPLOAD: BR.conf.host + '/brouter/profile',
|
||||
PRECISION: 6,
|
||||
NUMBER_SEPARATOR: ',',
|
||||
GROUP_SEPARATOR: '|'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue