(Line 18556 leaflet-routing-machine.js)
The problem is by default i cant drag to add new waypoint, i did some debug and found that prevWp was undefined... and i thought that's weird.
function name: _dragNewWaypoint
I did some research and found that newWpIndex was 0 so when you get the previous waypoint the index is going to be -1, so the result undefined.
Hello,
(Line 18556 leaflet-routing-machine.js) The problem is by default i cant drag to add new waypoint, i did some debug and found that prevWp was undefined... and i thought that's weird. function name: _dragNewWaypoint
I did some research and found that newWpIndex was 0 so when you get the previous waypoint the index is going to be -1, so the result undefined.