leaflet-routing icon indicating copy to clipboard operation
leaflet-routing copied to clipboard

Add #clearAll() method

Open Starefossen opened this issue 11 years ago • 1 comments

Add method for removing all waypoints and corresponding line-segments. This is useful when a user wants to start over with a fresh canvas.

Starefossen avatar Jan 21 '14 11:01 Starefossen

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.

canadaka avatar Dec 02 '14 11:12 canadaka