Merge remote-tracking branch 'upstream/pull/5095'
This commit is contained in:
commit
c5aa012dc2
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
|
|||
var viewbox = map.getBounds().toBBoxString(); // <sw lon>,<sw lat>,<ne lon>,<ne lat>
|
||||
var geocodeUrl = OSM.NOMINATIM_URL + "search?q=" + encodeURIComponent(endpoint.value) + "&format=json&viewbox=" + viewbox;
|
||||
|
||||
if (endpoint.geocodeRequest) endpoint.geocodeRequest.abort();
|
||||
endpoint.geocodeRequest = $.getJSON(geocodeUrl, function (json) {
|
||||
delete endpoint.geocodeRequest;
|
||||
if (json.length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue