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

Allow removing individual geometry #501

Open
sarahsnow1 opened this issue Nov 3, 2017 · 0 comments
Open

Allow removing individual geometry #501

sarahsnow1 opened this issue Nov 3, 2017 · 0 comments

Comments

@sarahsnow1
Copy link
Member

The APIs around adding polylines, polygons, and markers are currently unbalanced in that you add individual geometries but then only have the option to clear all of them. We should add methods to remove individual polylines/polygons/markers and update the current methods which remove all polylines/polygons/markers so that the apis for each look like this:

//Currently exists
`MapzenMap#addPolyline(Polyline)`

//Add this
`MapzenMap#removePolyline(Polyline)`

//Currently is `MapzenMap#removePolyline()`
`MapzenMap#removePolylines()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant