]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions-endpoint.js
Reverse-geocode on endpoint marker drag end
[rails.git] / app / assets / javascripts / index / directions-endpoint.js
index b3d03cdca5ccc97b4a5a9bcfc5119271ad75e91f..604dcc2b6c6b8ed3a0751531dec9a0f452be92ed 100644 (file)
@@ -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");
   }