refresh search if showing and user changes provider
This commit is contained in:
parent
f383fe2793
commit
deea77ab93
1 changed files with 3 additions and 0 deletions
|
@ -252,6 +252,9 @@ OSM.Routing=function(map,name,jqSearch) {
|
|||
// Choose an engine on dropdown change
|
||||
r.selectEngine=function(e) {
|
||||
r.chosenEngine=r.engines[e.target.selectedIndex];
|
||||
if (r.polyline){ // and if a route is currently showing, must also refresh, else confusion
|
||||
r.requestRoute(true);
|
||||
}
|
||||
};
|
||||
// Choose an engine by name
|
||||
r.chooseEngine=function(name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue