Contents

getFlattenedItemList()

A flattened array of items that includes annotations and overlays.

Declaration

getFlattenedItemList(): (Annotation | Overlay)[];

Discussion

The items in an ItemCollection may include nested item collections. Use getFlattenedItemList() when you need a flat array that contains individual annotations and overlays.

Access the original GeoJSON data in the data object. To retrieve the data as MapKit JS items, use the items or getFlattenedItemList() objects.

See Also

Item collection properties