Merge remote-tracking branch 'upstream/pull/5101'

This commit is contained in:
Tom Hughes 2024-08-21 18:32:39 +01:00
commit cd36a388c2

View file

@ -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);
};