Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #clearAll() method #6

Open
Starefossen opened this issue Jan 21, 2014 · 1 comment
Open

Add #clearAll() method #6

Starefossen opened this issue Jan 21, 2014 · 1 comment

Comments

@Starefossen
Copy link
Contributor

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 Starefossen self-assigned this Mar 10, 2014
@Starefossen Starefossen added this to the v0.2.0 milestone Mar 11, 2014
@Starefossen Starefossen removed their assignment Nov 30, 2014
@canadaka
Copy link

canadaka commented Dec 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants