Skip to main content
Version: 7.0.0

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 ParameterDefault type
G extends GeometryPolygon | LineString

Parameters

ParameterType
sketchesSketch<G>[]
name?string

Returns

SketchCollection<G>