Contents

itemForFeature(item, geoJSON)

Overrides a feature.

Declaration

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

A map item for the feature.

Discussion

MapKit JS calls this method for every GeoJSON feature.

See Also

Overriding items