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 Parameter | Default type |
---|---|
G extends Geometry | SketchGeometryTypes |
Parameters
Parameter | Type |
---|---|
options | object |
options.feature ? | Feature <G , GeoJsonProperties > |
options.id ? | string |
options.name ? | string |