genFeatureCollection()
function genFeatureCollection<G>(features, options): FeatureCollection<G, GeoJsonProperties>
Given array of features, return a feature collection with given properties. Generates reasonable default values for any properties not passed in The geometry type of the returned collection will match the one passed in Properties of features are retained
Type Parameters
Type Parameter | Default type |
---|---|
G extends Geometry | SketchGeometryTypes |
Parameters
Parameter | Type |
---|---|
features | Feature <G , GeoJsonProperties >[] |
options | object |
options.id ? | string |
options.name ? | string |