Simplify response check, beeline has feature now

This commit is contained in:
Norbert Renner 2022-05-06 15:27:46 +02:00
parent 31916c2cae
commit d8e0e8ee09

View file

@ -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());
}
});