Skip to content

Documentation / @geoverse/editor-ol / AddFeaturesCommand

Class: AddFeaturesCommand ​

Defined in: editor-core/dist/commands/addFeatures.d.ts:8

批量新增要素(0→N,仅 added)。用于粘贴等一次落多个要素的场景。

Implements ​

  • Command

Constructors ​

Constructor ​

ts
new AddFeaturesCommand(inputs, label?): AddFeaturesCommand;

Defined in: editor-core/dist/commands/addFeatures.d.ts:11

Parameters ​

inputs ​

NewFeatureInput[]

label? ​

string

Returns ​

AddFeaturesCommand

Properties ​

label ​

ts
readonly label: string;

Defined in: editor-core/dist/commands/addFeatures.d.ts:10

Implementation of ​

ts
Command.label

Methods ​

plan() ​

ts
plan(ctx): ChangeSet;

Defined in: editor-core/dist/commands/addFeatures.d.ts:12

Parameters ​

ctx ​

EditContext

Returns ​

ChangeSet

Implementation of ​

ts
Command.plan