Skip to content

Commit

Permalink
allow explicitely disabling elevation even if supported
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Jan 24, 2020
1 parent 3189cce commit 2edb21e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/main/resources/assets/js/graphhopper/GHRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ GHRequest.prototype.getEarliestDepartureTime = function () {

GHRequest.prototype.initVehicle = function (vehicle) {
this.api_params.vehicle = vehicle;
var featureSet = this.features[vehicle];
this.api_params.elevation = featureSet && featureSet.elevation;
if(this.api_params.elevation !== false) {
var featureSet = this.features[vehicle];
this.api_params.elevation = featureSet && featureSet.elevation;
}
this.hasTCSupport();
};

Expand Down

0 comments on commit 2edb21e

Please sign in to comment.