removeItems(items)
Removes a collection of annotations, overlays, or other item collections from the map.
Declaration
removeItems(items: (Overlay | Annotation)[]): (Annotation | Overlay)[];Parameters
- items:
An array of annotations, overlays, or the data returned from Importgeojson to display on the map.
Return Value
Returns an array of items removed from the map.
Discussion
This method doesn’t change the map’s visible region. Use showItems(items, options) with a list of items to focus on to update the map’s view.