UpdateFeatureActionParams
Properties
id
id:
string
label?
optionallabel:string
The label of the feature action.
layerIds?
optionallayerIds:string[]
The layers to add the action to. Optional. Defaults to all layers.
geometryTypes?
optionalgeometryTypes: ("Polygon"|"Point"|"Line"|"Raster")[]
The geometry type of the features to add the action to. Optional. Defaults to all geometry types.
type?
optionaltype:undefined
onTrigger()?
optionalonTrigger: (args: {feature:LayerFeature; }) =>void
The function to call when the feature action is triggered.
Parameters
Returns
void
onCreate()?
optionalonCreate: (args: {id:string; }) =>void
A function to call when the element is created.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
onDestroy()?
optionalonDestroy: (args: {id:string; }) =>void
A function to call when the element is destroyed.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
Last updated
Was this helpful?