GoMap icon indicating copy to clipboard operation
GoMap copied to clipboard

Retain object selection when zooming out, and then back in.

Open bryceco opened this issue 3 years ago • 3 comments

A user requested this feature, looking to see how other people feel about it:

Currently if you're editing an object and then zoom out to the point that editing is disabled then the object is automatically deselected. The request is that after zooming back in the object is still selected. Any opinions on whether this is desirable?

bryceco avatar May 06 '22 23:05 bryceco

I think this is a good idea.

I don't remember using this often, but I can see using it to get a quick overview of my surroundings and then continue editing. Keeping the selected state would help in this case. This would be a zoom-out-then-in on same location szenario.

However, I see an issue when panning away from the current location. I have this issue right now, that I tend to pan away from a place but have a selection over there. And then start a new action, which sometimes results in warning (eg. "continue road action / "+"), but sometimes starts the action even though the element is off screen (eg. change tags panel).

So maybe the deselect would have to happen when I move away after this zoom-out-operation? Or it might just be the same as now when panning away far from where I am… – which would make it more consistent in general.

So more of a yes, than a now, IMO.

tordans avatar May 13 '22 04:05 tordans

Zooming out should not disable editing the currently selected line/node. It should hide everything else except the currently selected line.

iD behaves kind of like this already, zooming out always still shows the selected line/node, which lets you see country outlines and other things that don't fit on one screen. I've been in a situation while drawing out woods which covered an entire island where it's useful to see/edit while really zoomed out.

verhovsky avatar May 03 '24 22:05 verhovsky

It should hide everything else except the currently selected line.

Architecturally this is really hard to do. When you zoom out the editing layer is swapped out and a different layer is swapped in, so access to the selected object is gone. The only possibility would be to temporarily add an overlay showing the objects path using the new LineDrawingLayer class.

bryceco avatar May 03 '24 22:05 bryceco