From d8e0e8ee097ce2f054423b06ac333c5c4fabbd4e Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 6 May 2022 15:27:46 +0200 Subject: [PATCH] Simplify response check, beeline has feature now --- js/plugin/Routing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js index cfc6c43..ed6bbb8 100644 --- a/js/plugin/Routing.js +++ b/js/plugin/Routing.js @@ -365,7 +365,7 @@ BR.Routing = L.Routing.extend({ this._eachSegment(function (m1, m2, line) { // omit if null (still calculating) or error // NOTE: feature check specific to BRouter GeoJSON response, workaround to detect error line - if (line && (line.feature || m1._routing.beeline)) { + if (line && line.feature) { latLngs = latLngs.concat(line.getLatLngs()); } });