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
itemForFeature(item, geoJSON)itemForFeatureCollection(itemCollection, geoJSON)itemForLineString(overlay, geoJSON)itemForMultiLineString(itemCollection, geoJSON)itemForPoint(coordinate, geoJSON)itemForMultiPoint(itemCollection, geoJSON)itemForPolygon(overlay, geoJSON)styleForOverlay(overlay, geoJSON)