From ec3c1f94baf3d0f43f6f73a1683553cb22587eab Mon Sep 17 00:00:00 2001 From: elias couppe Date: Thu, 21 Mar 2024 16:49:43 +0100 Subject: [PATCH] fix eslint --- src/Leaflet/Controls/Route.js | 4 ++-- src/OpenLayers/Controls/Route.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Leaflet/Controls/Route.js b/src/Leaflet/Controls/Route.js index aa71ced1..4f2c643b 100644 --- a/src/Leaflet/Controls/Route.js +++ b/src/Leaflet/Controls/Route.js @@ -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 { diff --git a/src/OpenLayers/Controls/Route.js b/src/OpenLayers/Controls/Route.js index 3cb766c3..67dc95cd 100644 --- a/src/OpenLayers/Controls/Route.js +++ b/src/OpenLayers/Controls/Route.js @@ -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 {