X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f3576e91bcad927f037cd0f5a962960b9b2a8b5..bc70cae711fb6947233d6a750cb33f115aa7a01b:/app/assets/javascripts/index/directions-endpoint.js diff --git a/app/assets/javascripts/index/directions-endpoint.js b/app/assets/javascripts/index/directions-endpoint.js index 3ffb9b498..7fe4b4ea7 100644 --- a/app/assets/javascripts/index/directions-endpoint.js +++ b/app/assets/javascripts/index/directions-endpoint.js @@ -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); };