Skip to main content

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