diff --git a/config.js b/config.js index 2318b63..79fff57 100644 --- a/config.js +++ b/config.js @@ -23,6 +23,8 @@ 'vm-forum-velomobil-schnell' ]; + BR.conf.host = 'http://h2096617.stratoserver.net:443'; + } else { // desktop configuration @@ -39,6 +41,8 @@ 'car-test' ]; + BR.conf.host = 'http://localhost:17777'; + } })(); diff --git a/js/router/BRouter.js b/js/router/BRouter.js index 8d3f726..420da8d 100644 --- a/js/router/BRouter.js +++ b/js/router/BRouter.js @@ -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: '|'