Skip to main content
Version: 1.8.3.X

Layer Actions

Layer Actions allow you to define custom interactions for map features, such as running scripts, making HTTP requests, or opening dialogues. Actions can be managed at both the root layer and individual sublayers:

Action ScopeDescription
Root Layer ActionsActions added at the root level apply to all sublayers and are shown as greyed out in sublayers (not editable from there).
Sublayer ActionsActions added to a specific sublayer only apply to that sublayer.

There are two types of layer actions:

Action TypeDescription
Single ActionTriggered for a single selected feature.
Multi ActionTriggered for multiple selected features at once.

Admins can use the advanced editor to quickly copy, paste, and manage actions in bulk.

By default, Maptaskr Power Maps displays an infobox when a user clicks a clickable layer. This can be overridden by assigning a custom single-record action, giving admins granular control over map interactions.

How to Add a Layer Action​

Follow these steps to add a new action to a layer:

  1. Open the Layer Gallery.

  2. Select the layer you want to add the action to.

  3. Go to the Features tab.

  4. Choose either the root or a specific sublayer where the action should apply.

  5. Select the Layer Actions tab.

  6. Choose how the action should be triggered (Single or Multi) and click Add Action.

  7. Select an Action Type from the list.

  8. Enter an Action Name (this will appear in the right-click menu).

  9. Search and select an icon that best represents your action (icon catalog).

  10. Provide the required Action Data.

    Learn

    If you're unsure about the expected action data, refer to the Layer Actions Configuration for detailed instructions and examples.

  11. (Optional) Add conditional visibility by enabling Show action only when condition is met and specifying the field, comparison, and value. Add multiple conditions with the plus button.

  12. (Optional) Use Layer Refresh Properties to refresh all or specific layers after the action runs. If you intent to refresh specific layers make sure to add the layer or sub layer id's to it the input

Layer Action

Filtering a Preloaded Layer from a Selection​

Choose FilterPreloadedLayerByValue for either a Single or Multi action to filter a preloaded target using attributes from selected source features. Add the action to the source layer; at least one feature must be selected even when its filter values are literals.

Set preconfiguredLayerId to the target's preloaded sublayer instance ID, not a gallery layer ID, then configure the target field, comparison and value rows in filterBy. Use a single-feature token such as {{accountid}} for Single, or the delimiter form {{accountid|,}} with isInList for Multi. A plain single-feature token does not read the first record in Multi mode.

All rows must match. Running the action replaces the target's existing UI filter, but preserves independent layer/configuration, free-text and applicable spatial map filters. The target map layer and an already-open Data Tab refresh; the action does not open the target tab or change its visibility.

Use the canonical action reference and Accounts-to-Contacts example for required fields, placeholder behaviour and result checks. See Finding the Target Instance ID before configuring the action.