Contents

itemForFeatureCollection(itemCollection, geoJSON)

Overrides a feature collection.

Declaration

itemForFeatureCollection?<D extends GeoJSONTypes.FeatureCollection>(
        itemCollection: ItemCollection<D>,
        geoJSON: D,
    ): ItemCollection<D> | Item[] | null;

Parameters

  • itemCollection:

    A collection containing associated annotations and overlays.

  • geoJSON:

    The original GeoJSON object for the FeatureCollection. This contains an array of feature types.

Return Value

A map item or an array of map items.

Discussion

MapKit JS calls this method for every GeoJSON FeatureCollection object. The framework also calls this method after constructing subitems and calling their delegate functions.

See Also

Overriding items