---
title: ItemCollection
framework: mapkitjs
role: symbol
role_heading: Class
path: mapkitjs/itemcollection
---

# ItemCollection

A tree structure containing annotations, overlays, and nested item collection objects.

## Declaration

```data
class ItemCollection<D = any>
```

## Overview

Overview The importGeoJSON(data, callback) method returns item collections. Don’t instantiate them directly.

## Topics

### Item collection properties

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

## See Also

### Geographical features

- [importGeoJSON(data, callback)](mapkitjs/mapkit/importgeojson.md)
- [GeoJSONDelegate](mapkitjs/geojsondelegate.md)
- [Item](mapkitjs/item.md)
- [GeoJSONImporterCallback](mapkitjs/geojsonimportercallback.md)
- [GeoJSONImportError](mapkitjs/geojsonimporterror.md)
- [Displaying Indoor Maps with MapKit JS](mapkitjs/displaying-indoor-maps-with-mapkit-js.md)
