umap
umap copied to clipboard
Ability to lock the position of a line or marker
Is your feature request related to a problem? Please describe. It's frustrating when you are trying to extend or remove points from a line but accidentally move the position of the entire line. It's also annoying when you are moving the map around but accidentally drag a marker from its position.
Describe the solution you'd like An option in the properties of a line/marker to switch between unlocked/locked position. When a line is locked, the overall position of the line cannot be moved but it can still be extended, points deleted, points dragged, and able to be split.
Describe alternatives you've considered A global setting that enables/disables dragging the position of all lines/markers.
Additional context N/A
This is very close to #1206
@Archy-X @Elefant-aus-Wuppertal @jvmatl I'm curious about how to implement this. Do you think it would be more valuable to be able to toggle movements for a whole given datalayer or to be more granular and decide that per marker for instance?
I think it's less cumbersome to do that globally for a layer rather than locking points/lines/polygons one by one but I maybe miss a use case you have.
Yeah, if you're asking my opinion, I think a single global UI element that locks existing points to their current position would be less cumbersome than trying to retain a lock or unlocked state for each point or each line, and still give users most of the benefit. Like I said in my earlier comment, I think the salient thing is to recognize that sometimes you're trying to modify the geography (in which case you want the points to move) and sometimes you're just trying to read or modify the metadata, in which case the movable points are just an annoyance.
In my usecase, it would be fine (or perhaps easier) to have the toggle for an entire layer or as a global setting instead of per marker/line. But when a layer is locked, I would prefer the lines to still be editable (can add and move points in a line), but just the overall location of the line should be locked so you can't accidentally drag the entire line.
While I understand the original issue, I doubt the proposed solution is the real fix.
I'd instead challenge what creates the original issue, here are some thoughts on this:
- maybe the issue is that it's too easy to drag a polygon, so maybe dragging should only be possible without a modifier key (ctrl/meta/shift, I don't know), or after some action (right-click, or some button on polygon click)
- maybe the issue is that the current ctrl-Z is so dump and one cannot simply undo the last accidental drag
- maybe the issue is that the "properties editor table" is too dump, and we should make it better for exemple:
- allow to display on half of the screen so to continue to see the map
- highlight and move to the selected row (or add a button near each row to do so)
This feature would be really nice to have. For me it would be enough only having it globally.
Would love this feature! It's way too easy to accidentally move something, would love a way to lock a polygon from being moved whilst still being able to edit its points.
Another vote for this feature - would switch from Google MyMaps if items could be locked. It seems to easy to accidentally drag an item when meaning to drag the map. My ideal would be all points locked unless in edit mode. So maybe a global setting in the "Map Advanced Properties" of "Items Locked" On/Off. Off would be as now (an item can be dragged), On would be dragging always drags the map even if the cursor is over an object. When an item is right-clicked and "Toggle Edit Mode" is selected then that one item can be dragged if it is selected on the map.