Skip to content

Documentation / @geoverse/editor-libre / toRenderCollection

Function: toRenderCollection()

ts
function toRenderCollection(features, severityById): FeatureCollection;

Defined in: editor-libre/src/geo.ts:59

把要素集合转为渲染用 FeatureCollection,按 issues 标注 __severity。

Parameters

features

EditableFeature[]

severityById

Map<string, "error" | "warning">

Returns

FeatureCollection