OldInsuranceMaps icon indicating copy to clipboard operation
OldInsuranceMaps copied to clipboard

[Request] Ability to remove/detach MultiMask nodes

Open oxguy3 opened this issue 9 months ago • 1 comments

Describe the feature or enhancement you're looking for When creating a MultiMask, any node you create is not removable. You can reposition it or stack it on top of another node, but you can't get rid of it without deleting the entire mask for that page. Additionally, if two pages are attached to each other via a node, there is no way to detach those pages without deleting one of their masks. It would be nice to have some way to remove nodes - perhaps by right clicking them?

oxguy3 avatar Mar 17 '25 17:03 oxguy3

It's true, the editing capabilities are pretty rudimentary for masks. I had figured that just fully deleting the mask would get us pretty far (it has!) because it's pretty easy to recreate one, but I'm glad you brought this up because it really should be added.

I'm thinking a workflow like this may be a good approach:

  1. right-click a point (or, enable a "delete" mode with a switch or something)
  2. click anywhere on the layer whose duplicate of that point you want to remove
  3. the point is removed from that mask and all other content remains unchanged.

Does that seem like a good approach?

mradamcox avatar Mar 19 '25 22:03 mradamcox

Ok, well it turned out that all along, holding Alt and clicking would remove points as a default behavior with the OpenLayers Modify interaction I was using. Completely didn't realize that until yesterday when I went to try adding this behavior while working on other parts of the interface.

I've altered the default behavior a bit so that instead of alt it uses the control/command key. This because hitting alt in browsers can open the top nav menu, so control seemed like a better option.

Because shared nodes are automatically deleted from both masks in this case, it's not as nuanced of an approach as what I described above, but it's much simpler in the codebase and the simplicity is well worth it.

mradamcox avatar Nov 04 '25 05:11 mradamcox