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
nullfor features withnullgeometry. - 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
itemForFeatureCollection(itemCollection, geoJSON)itemForLineString(overlay, geoJSON)itemForMultiLineString(itemCollection, geoJSON)itemForPoint(coordinate, geoJSON)itemForMultiPoint(itemCollection, geoJSON)itemForPolygon(overlay, geoJSON)itemForMultiPolygon(itemCollection, geoJSON)styleForOverlay(overlay, geoJSON)