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

# itemForFeature(item, geoJSON)

Overrides a feature.

```
itemForFeature?(
    item: Item | null,
    geoJSON: GeoJSONTypes.Feature,
): Item | null;
```

## Parameters

`item`

An item the system creates for the geometry of the feature, or `null` for features with `null` geometry.

`geoJSON`

The original GeoJSON object for the `feature`.

## Return Value

A map item for the `feature`.

## Discussion

MapKit JS calls this method for every GeoJSON `feature`.

---

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)