X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f3576e91bcad927f037cd0f5a962960b9b2a8b5..1bee96ede16e1dab41ad82efb9f2486da68a642f:/app/assets/javascripts/index/directions-endpoint.js?ds=sidebyside 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); };