Make getGeocode a private function
This commit is contained in:
parent
51cbbe6d5a
commit
89a35fe11f
1 changed files with 3 additions and 3 deletions
|
@ -44,11 +44,11 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
|
||||||
setInputValueFromLatLng(latlng);
|
setInputValueFromLatLng(latlng);
|
||||||
changeCallback();
|
changeCallback();
|
||||||
} else if (endpoint.value) {
|
} else if (endpoint.value) {
|
||||||
endpoint.getGeocode();
|
getGeocode();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
endpoint.getGeocode = function () {
|
function getGeocode() {
|
||||||
endpoint.awaitingGeocode = true;
|
endpoint.awaitingGeocode = true;
|
||||||
|
|
||||||
var viewbox = map.getBounds().toBBoxString(); // <sw lon>,<sw lat>,<ne lon>,<ne lat>
|
var viewbox = map.getBounds().toBBoxString(); // <sw lon>,<sw lat>,<ne lon>,<ne lat>
|
||||||
|
@ -67,7 +67,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
|
||||||
|
|
||||||
changeCallback();
|
changeCallback();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function setLatLng(ll) {
|
function setLatLng(ll) {
|
||||||
endpoint.latlng = ll;
|
endpoint.latlng = ll;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue