X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/576745e332c83d74890a19a323d310e602be9dac..08837b2f8b3a8434875682f8f18962a9bce73c46:/app/assets/javascripts/routing.js.erb diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 7837c5327..45ae08d81 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -88,6 +88,12 @@ OSM.Routing=function(map,name,jqSearch) { r.requestRoute(); } }; + + // Drag and drop markers + + r.handleDrop=function(e) { + console.log(r.map.mouseEventToLatLng(e.originalEvent)) + }; // Route-fetching UI