itemForLineString(overlay, geoJSON)
Overrides a line string.
Declaration
itemForLineString?(
overlay: PolylineOverlay,
geoJSON: GeoJSONTypes.LineString,
): PolylineOverlay | null;Parameters
- overlay:
A Polylineoverlay object.
- geoJSON:
The original GeoJSON object for the
LineStringobject.
Return Value
A map item or an array of map items.
Discussion
MapKit JS calls this method for each individual LineString geometry object. You can customize or completely replace the provided overlay before returning it.
See Also
Overriding items
itemForFeature(item, geoJSON)itemForFeatureCollection(itemCollection, geoJSON)itemForMultiLineString(itemCollection, geoJSON)itemForPoint(coordinate, geoJSON)itemForMultiPoint(itemCollection, geoJSON)itemForPolygon(overlay, geoJSON)itemForMultiPolygon(itemCollection, geoJSON)styleForOverlay(overlay, geoJSON)