Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Mar 21, 2024
1 parent bf55faf commit ec3c1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Leaflet/Controls/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,14 +675,14 @@ var Route = L.Control.extend(/** @lends L.geoportalControl.Route.prototype */ {
this._currentExclusions = options.exclusions;

// on recupere les éventuelles options du service passées par l'utilisateur
var routeOptions = this.options.routeOptions
var routeOptions = this.options.routeOptions;

// OVERLOAD : la resource bd-topo-osrm ne gère pas le calcul piéton en mode fastest
// dans ce cas, on utilise valhalla dans le cas d'une utilisation par défaut du widget
// sans paramétrage de resource explicitement demandé
var routeResource;
if (!routeOptions.resource) {
if (this._currentComputation == "fastest" && this._currentTransport === "Pieton") {
if (this._currentComputation === "fastest" && this._currentTransport === "Pieton") {
routeResource = "bdtopo-valhalla";
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/OpenLayers/Controls/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ var Route = (function (Control) {
// sans paramétrage de resource explicitement demandé
var routeResource;
if (!routeOptions.resource) {
if (this._currentComputation == "fastest" && this._currentTransport === "Pieton") {
if (this._currentComputation === "fastest" && this._currentTransport === "Pieton") {
routeResource = "bdtopo-valhalla";
}
} else {
Expand Down

0 comments on commit ec3c1f9

Please sign in to comment.