---
title: "itemForFeature(item, geoJSON)"
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/geojsondelegate/itemforfeature
---

# itemForFeature(item, geoJSON)

Overrides a feature.

## Declaration

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

Return Value A map item for the feature.

## Discussion

Discussion MapKit JS calls this method for every GeoJSON feature.

## See Also

### Overriding items

- [itemForFeatureCollection(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemforfeaturecollection.md)
- [itemForLineString(overlay, geoJSON)](mapkitjs/geojsondelegate/itemforlinestring.md)
- [itemForMultiLineString(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemformultilinestring.md)
- [itemForPoint(coordinate, geoJSON)](mapkitjs/geojsondelegate/itemforpoint.md)
- [itemForMultiPoint(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemformultipoint.md)
- [itemForPolygon(overlay, geoJSON)](mapkitjs/geojsondelegate/itemforpolygon.md)
- [itemForMultiPolygon(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemformultipolygon.md)
- [styleForOverlay(overlay, geoJSON)](mapkitjs/geojsondelegate/styleforoverlay.md)
