Skip to main content
Version: Next

genFeature()

function genFeature<G>(options): Feature<G, GeoJsonProperties>

Returns a Feature with given features geometry and properties. Reasonable defaults are given for properties not provided Default geometry is a square from 0,0 to 1,1

Type Parameters

Type ParameterDefault type
G extends GeometrySketchGeometryTypes

Parameters

ParameterType
optionsobject
options.feature?Feature<G, GeoJsonProperties>
options.id?string
options.name?string

Returns

Feature<G, GeoJsonProperties>