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

# itemForGeometryCollection(item, object)

Overrides a geometry collection with the provided item and object.

```
itemForGeometryCollection?<D extends GeoJSONTypes.GeometryCollection>(
    item: ItemCollection<D>,
    object: D,
): ItemCollection<D> | Item[] | null;
```

## Parameters

`item`

An item the system creates for the geometry of the geometry collection.

`object`

The original GeoJSON object for the `feature`.

## Return Value

A map item for the geometry collection.

---

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)