<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/GeoJSONDelegate/itemForFeatureCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.GeoJSONDelegate/itemForFeatureCollection"
  },
  "title" : "itemForFeatureCollection(itemCollection, geoJSON)"
}
-->

# itemForFeatureCollection(itemCollection, geoJSON)

Overrides a feature collection.

```
itemForFeatureCollection?<D extends GeoJSONTypes.FeatureCollection>(
    itemCollection: ItemCollection<D>,
    geoJSON: D,
): ItemCollection<D> | Item[] | null;
```

## Parameters

`itemCollection`

A collection containing associated annotations and overlays.

`geoJSON`

The original GeoJSON object for the `FeatureCollection`. This contains an array of `feature` types.

## Return Value

A map item or an array of map items.

## Discussion

MapKit JS calls this method for every GeoJSON `FeatureCollection` object. The framework also calls this method after constructing subitems and calling their delegate functions.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)