itemForPoint(coordinate, geoJSON)
Overrides a point.
Declaration
itemForPoint?(
coordinate: Coordinate,
geoJSON: GeoJSONTypes.Point,
): Item | null;Parameters
- coordinate:
A GeoJSON
Pointgenerates the coordinate. You can use the coordinate to instantiate an item to return. - geoJSON:
The original GeoJSON object for the
Point. This object may be a simplePointor aFeaturewith thePointgeometry type.
Return Value
An array of map items.
Discussion
MapKit JS calls this method for every Point object. For a MultiPoint object or for a GeometryCollection of Points and MultiPoints, the framework calls itemForPoint() for each individual Point object.