Directions, read "to" location in URL - fixes #998
This commit is contained in:
parent
ee9ac1930d
commit
6d511fbd34
1 changed files with 2 additions and 7 deletions
|
@ -336,13 +336,8 @@ OSM.Directions = function (map) {
|
||||||
setEngine(params.engine);
|
setEngine(params.engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.from) {
|
endpoints[0].setValue(params.from || "");
|
||||||
endpoints[0].setValue(params.from);
|
endpoints[1].setValue(params.to || "");
|
||||||
endpoints[1].setValue("");
|
|
||||||
} else {
|
|
||||||
endpoints[0].setValue("");
|
|
||||||
endpoints[1].setValue("");
|
|
||||||
}
|
|
||||||
|
|
||||||
var o = route[0] && L.latLng(route[0].split(',')),
|
var o = route[0] && L.latLng(route[0].split(',')),
|
||||||
d = route[1] && L.latLng(route[1].split(','));
|
d = route[1] && L.latLng(route[1].split(','));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue