custom confirmation popup before the edit process

10 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Vanessa M.

unread,
Feb 11, 2026, 4:12:54 AMFeb 11
to mapstore-developers

Hi,

I'm developing a custom MapStore frontend and I want to display a confirmation modal before the user is allowed to edit a feature or layer.

Instead of the Edit button triggering the normal MapStore edit workflow directly, I need to:

  1. Catch the Edit button click
  2. Show my own popup/modal
  3. Only continue with the real edit action if the user confirms

What is the recommended way in MapStore to override or intercept existing plugin actions (like editing) and insert custom logic (popup) before MapStore executes its default behavior?
Should this be done via custom actions + epics, or is there a simpler built‑in extension point for this?

Any guidance or examples would be greatly appreciated!

Lorenzo Natali

unread,
Mar 17, 2026, 4:43:18 AM (2 days ago) Mar 17
to mapstore-developers
Hi,
To customize that behavior I think the easier anr more clean way is to override the standard FeatureGrid Plugin (in fact creating your own version, a little customized, in your project), in particular the Toolbar events.switchEditMode method, replacing the TOGGLE_EDIT_MODE action with a custom action that shows the confirmation button first.
There are a lot of epics involved in TOGGLE_EDIT_MODE to control the map and/or manage save and cancel events, so trying to work on intercepting it could be hard.

Reply all
Reply to author
Forward
0 new messages