---
title: "itemForGeometryCollection(item, object)"
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/geojsondelegate/itemforgeometrycollection
---

# itemForGeometryCollection(item, object)

Overrides a geometry collection with the provided item and object.

## Declaration

```data
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

Return Value A map item for the geometry collection.
