geoJSONDidComplete(result, geoJSON)
Completes the GeoJSON import.
Declaration
geoJSONDidComplete?<D extends GeoJSONTypes.GeoJSON>(
result: ItemCollection<D>,
geoJSON: D,
): void;Parameters
- result:
The mapped item collection.
- geoJSON:
The original parsed GeoJSON object.
Discussion
After MapKit JS loads the GeoJSON data and converts it to MapKit objects, the framework calls geoJSONDidComplete(result, geoJSON) with the resulting ItemCollection, which reflects any provided customizations. This is the same value that returns directly from importGeoJSON(data, callback) in the synchronous case.