Parameters for the runArcadeExpression and runAsyncArcadeExpression functions.

interface RunArcadeExpressionParams {
    emitErrorOnMissingVariables?: boolean;
    feature?: Feature;
    layer?: Layer | Sublayer;
    map?: Map;
    spatialReference?: SpatialReference;
    vars?: Record<string, unknown>;
}

Properties

emitErrorOnMissingVariables?: boolean

Emit an error when the script is missing referenced variables. Defaults to 'true'.

feature?: Feature

Optional only required when the script references the "$feature" variable.

layer?: Layer | Sublayer

Optional only required when the script references the "$layer" or "$datastore" variable.

map?: Map

Optional only required when the script references the "$map" variable.

spatialReference?: SpatialReference

Optional only required when the script references the "$map", "$layer" or "$datastore" variables.

vars?: Record<string, unknown>

Additional Arcade arguments to attach to the script when run.