Merge remote-tracking branch 'upstream/pull/5101'
This commit is contained in:
commit
cd36a388c2
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
|
|||
|
||||
if (endpoint.geocodeRequest) endpoint.geocodeRequest.abort();
|
||||
delete endpoint.geocodeRequest;
|
||||
removeLatLng();
|
||||
delete endpoint.value;
|
||||
input.val("");
|
||||
map.removeLayer(endpoint.marker);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue