Skip to content

Allow removing individual geometry #501

@sarahsnow1

Description

@sarahsnow1

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()`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions