Skip to content

Commit

Permalink
Elevation control didn't show up
Browse files Browse the repository at this point in the history
The elevation control in the web GUI does not show up. 8009563 was the reason. In `GHRequest.prototype.init = function (params)` parameter  `this.vehicle` was still used, although the assignment was removed. So this should be changed into 'params.vehicle'.

The same is true below in 'GHRequest.prototype.initVehicle = function (vehicle) {` where 'this.vehicle' needs to be replaced with 'vehicle'.
  • Loading branch information
ratrun committed Aug 23, 2015
1 parent bb5de58 commit 846f549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/main/webapp/js/ghrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ GHRequest.prototype.init = function (params) {

// overwrite elevation e.g. important if not supported from feature set
this.api_params.elevation = false;
var featureSet = this.features[this.vehicle];
var featureSet = this.features[params.vehicle];
if (featureSet && featureSet.elevation) {
if ('elevation' in params)
this.api_params.elevation = params.elevation;
Expand Down Expand Up @@ -353,7 +353,7 @@ GHRequest.prototype.init = function (params) {

GHRequest.prototype.initVehicle = function (vehicle) {
this.api_params.vehicle = vehicle;
var featureSet = this.features[this.vehicle];
var featureSet = this.features[vehicle];

if (featureSet && featureSet.elevation)
this.api_params.elevation = true;
Expand Down

0 comments on commit 846f549

Please sign in to comment.