From 79158c50e91b9d8d2a43d45142f2ff6df3a91632 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 12 Aug 2024 04:59:23 +0300 Subject: [PATCH 1/1] Reverse-geocode on endpoint marker drag end --- app/assets/javascripts/index/directions-endpoint.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/index/directions-endpoint.js b/app/assets/javascripts/index/directions-endpoint.js index b3d03cdca..604dcc2b6 100644 --- a/app/assets/javascripts/index/directions-endpoint.js +++ b/app/assets/javascripts/index/directions-endpoint.js @@ -42,6 +42,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch setLatLng(latlng); setInputValueFromLatLng(latlng); endpoint.value = input.val(); + if (e.type === "dragend") getReverseGeocode(); dragCallback(e.type === "drag"); } -- 2.39.5