genSampleSketchCollectionFromSketches()
function genSampleSketchCollectionFromSketches<G>(
sketches,
name?,
): SketchCollection<G>;
Given feature collection, return a sketch collection with reasonable random props. The geometry type of the returned collection will match the one passed in
Type Parameters
| Type Parameter | Default type |
|---|---|
G extends Geometry | Polygon | LineString |
Parameters
| Parameter | Type |
|---|---|
sketches | Sketch<G>[] |
name? | string |