Simplify response check, beeline has feature now
This commit is contained in:
parent
31916c2cae
commit
d8e0e8ee09
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue