Skip to content

Commit

Permalink
remove fixspeed again, and add rate to debug view
Browse files Browse the repository at this point in the history
  • Loading branch information
datendelphin committed Feb 24, 2019
1 parent 8107534 commit d58f04d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debug/bike.html
Original file line number Diff line number Diff line change
Expand Up @@ -4796,7 +4796,7 @@
"text-rotation-alignment": "map",
"text-anchor": "center",
"text-keep-upright": false,
"text-field": "{speed} km/h ➜"
"text-field": "{speed} km/h ➜ rate {rate}"
},
"metadata": {},
"filter": [
Expand Down
2 changes: 1 addition & 1 deletion debug/foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -4796,7 +4796,7 @@
"text-rotation-alignment": "map",
"text-anchor": "center",
"text-keep-upright": false,
"text-field": "{speed} km/h ➜"
"text-field": "{speed} km/h ➜ rate {rate}"
},
"metadata": {},
"filter": [
Expand Down
2 changes: 1 addition & 1 deletion debug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5084,7 +5084,7 @@
"text-rotation-alignment": "map",
"text-anchor": "center",
"text-keep-upright": false,
"text-field": "{speed} km/h ➜"
"text-field": "{speed} km/h ➜ rate {rate}"
},
"metadata": {},
"filter": [
Expand Down
3 changes: 0 additions & 3 deletions src/leaflet_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ module.exports = {
label: 'Car',
path: '/routed-car/route/v1',
debug: 'car',
fixspeed: 0
},
{
label: 'Bike',
path: '/routed-bike/route/v1',
debug: 'bike',
fixspeed: 18
},
{
label: 'Foot',
path: '/routed-foot/route/v1',
debug: 'foot',
fixspeed: 4.5
}],
layer: [{
'openstreetmap.de': de,
Expand Down
3 changes: 1 addition & 2 deletions src/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ var State = L.Class.extend({
var self = this;
L.setOptions(this, options);
L.Util.setOptions(this._lrm.options.router, {
serviceUrl: this._lrm.options.router.options.services[this.options.service].path,
fixspeed: this._lrm.options.router.options.services[this.options.service].fixspeed});
serviceUrl: this._lrm.options.router.options.services[this.options.service].path});
var profileSelector = L.DomUtil.get("profile-selector");
profileSelector.selectedIndex = this.options.service;
var services = self._lrm.options.router.options.services;
Expand Down

0 comments on commit d58f04d

Please sign in to comment.