indicate recalculation request by changing segment color (mark old);
in addition to or instead of loading spinner (#3)?
This commit is contained in:
parent
e187be8b29
commit
9279913d36
1 changed files with 9 additions and 1 deletions
|
|
@ -68,5 +68,13 @@ BR.Routing = L.Routing.extend({
|
|||
|
||||
add();
|
||||
}
|
||||
|
||||
|
||||
,_routeSegment: function(m1, m2, cb) {
|
||||
// change segment color before request to indicate recalculation (mark old)
|
||||
if (m1 && m1._routing.nextLine !== null) {
|
||||
m1._routing.nextLine.options.color = 'dimgray';
|
||||
m1._routing.nextLine._updateStyle();
|
||||
}
|
||||
L.Routing.prototype._routeSegment.call(this, m1, m2, cb);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue