You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The move interaction for text nodes is not super-intuitive. There is probably a good reason why it works as it does, but can we try to do something about it?
Skarminspelning.2022-10-25.kl.13.57.44.mov
The text was updated successfully, but these errors were encountered:
I've had a look and the main issue is that it's hard to extend an existing OL style. We either use the default edit style (current situation) or we provide a new one. I can't find the actual default edit style though - OL docs state here a default edit style, but it is not true (e.g. polygons in the docs lack a stroke, but they do have a blue stroke in the real default style as we can see in Hajk).
I'll see if I can dig into this a bit more, but no quick solution as it looks now.
This isn't easy, but I have a quick fix which may (or may not) be better. Please review these two options:
Current situation
Features get another style during move interaction. This is mostly nice, except for text nodes, which just disappear.
Skarminspelning.2022-11-03.kl.15.07.34.mov
Alternative solution
Features' style remains unchanged during move interaction. This is not as nice for the polygon, but we still have a small indication about this interaction: mouse cursor is changed to hand. The big win here is the edit interaction and what happens with the text node: we can edit and review the changes while we type!
Skarminspelning.2022-11-03.kl.15.11.10.mov
If everyone's fine with this, I prefer the alternative solution. Please let me know.
Describe the bug
The move interaction for text nodes is not super-intuitive. There is probably a good reason why it works as it does, but can we try to do something about it?
Skarminspelning.2022-10-25.kl.13.57.44.mov
The text was updated successfully, but these errors were encountered: