]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing.js.erb
Start work on drag-and-drop start/end markers
[rails.git] / app / assets / javascripts / routing.js.erb
index 7837c532771d3af28b457847bcda10621afb1f01..45ae08d81cd7dbe8accf86f0d90397ff386252e0 100644 (file)
@@ -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