leaflet-routing
leaflet-routing copied to clipboard
Add #clearAll() method
Add method for removing all waypoints and corresponding line-segments. This is useful when a user wants to start over with a fresh canvas.
yes this would be a nice feature.
Get an array of waypoints with routing.getWaypoints(), then use removeWaypoint() to remove each one. Then the Polyline also needs to be removed.