addItems(items)
Adds a collection of annotations, overlays, or other item collections to the map.
Declaration
addItems(items: (Overlay | Annotation)[]): (Annotation | Overlay)[];Parameters
- items:
An array of annotations, overlays, or the data returned from Importgeojson to display on the map.
Mentioned in
Return Value
Returns an array of items added to the map.
Discussion
Use addItems(items) to add elements to the map after importing them from importGeoJSON(data, callback).
This method doesn’t change the map’s visible region. Use showItems(items, options) with the list of items to change the map’s view.