---
title: GeoJSONDelegate
framework: mapkitjs
role: symbol
role_heading: Interface
path: mapkitjs/geojsondelegate
---

# GeoJSONDelegate

A delegate object that controls a GeoJSON import to override default behavior and provide custom style.

## Declaration

```data
interface GeoJSONDelegate
```

## Overview

Overview The delegate object provides hooks into the key moments in the GeoJSON import process. When you pass a delegate object to the importGeoJSON(data, callback) method, you can: Modify or replace annotations and overlays before MapKit JS adds them to the ItemCollection object. Override the default GeoJSON mapping behavior. Provide custom styling by implementing styleForOverlay(overlay, geoJSON). Receive feedback on the result from importing GeoJSON data.

## Topics

### Overriding items

- [itemForFeature(item, geoJSON)](mapkitjs/geojsondelegate/itemforfeature.md)
- [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)

### Handling errors and completion

- [geoJSONDidComplete(result, geoJSON)](mapkitjs/geojsondelegate/geojsondidcomplete.md)
- [geoJSONDidError(error, geoJSON)](mapkitjs/geojsondelegate/geojsondiderror.md)

### Instance Methods

- [itemForGeometryCollection(item, object)](mapkitjs/geojsondelegate/itemforgeometrycollection.md)

## See Also

### Geographical features

- [importGeoJSON(data, callback)](mapkitjs/mapkit/importgeojson.md)
- [Item](mapkitjs/item.md)
- [ItemCollection](mapkitjs/itemcollection.md)
- [GeoJSONImporterCallback](mapkitjs/geojsonimportercallback.md)
- [GeoJSONImportError](mapkitjs/geojsonimporterror.md)
- [Displaying Indoor Maps with MapKit JS](mapkitjs/displaying-indoor-maps-with-mapkit-js.md)
