Contents

itemForMultiPolygon(itemCollection, geoJSON)

Overrides a multipolygon.

Declaration

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

Parameters

  • itemCollection:

    A collection containing associated overlays.

  • geoJSON:

    The original GeoJSON object for the MultiPolygon. It contains an array of geometries.

Return Value

A map item or an array of map items.

Discussion

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

See Also

Overriding items