UIFeatureAction
Last updated
Was this helpful?
Represents a feature action after creation (with generated id).
label:
string
The label of the feature action.
onTrigger: (
args: {feature:LayerFeature; }) =>void
The function to call when the feature action is triggered.
void
id:
string
optionallayerIds:string[]
The layers to add the action to. Optional. Defaults to all layers.
optionalgeometryTypes: ("Polygon"|"Point"|"Line"|"Raster")[]
The geometry type of the features to add the action to. Optional. Defaults to all geometry types.
optionaltype:undefined
optionalonCreate: (args: {id:string; }) =>void
A function to call when the element is created.
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
void
optionalonDestroy: (args: {id:string; }) =>void
A function to call when the element is destroyed.
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
void
Last updated
Was this helpful?
Was this helpful?