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

# geoJSONDidError(error, geoJSON)

Indicates when the GeoJSON import fails.

```
geoJSONDidError?(
    error: GeoJSONImportError | Error,
    geoJSON?: GeoJSONTypes.GeoJSON,
): void;
```

## Parameters

`error`

An `Error` instance related to the last blocking error.

`geoJSON`

The original parsed GeoJSON object.

## Discussion

MapKit JS calls this method when the GeoJSON fails to load.

---

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)