---
title: getFlattenedItemList()
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/itemcollection/getflatteneditemlist
---

# getFlattenedItemList()

A flattened array of items that includes annotations and overlays.

## Declaration

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

## Discussion

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

- [data](mapkitjs/itemcollection/data.md)
- [items](mapkitjs/itemcollection/items.md)
