Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#13722 closed enhancement (fixed)

layer should not get the "show" checkbox disabled based on visiblity slider state

Reported by: aseerel4c26 Owned by: michael2402
Priority: normal Milestone:
Component: Core Version: latest
Keywords: layers visbility Cc:

Description (last modified by aseerel4c26)

Michael, while you're at it: The automatic "hide" feature of a layer is breaking my GUI expectations (which is most striking if you use the new mouse wheel slider movement - ticket #13703 ).

Steps:

  1. scroll muuuuch to lower the Opacity of a layer until the slider is at the lowest position
  2. (the layer automatically gets the "show" checkbox disabled)
  3. scroll in the opposite direction to increase the Opacity again (undo your action in 1.)

Expected: layer gets visible again since you have undone your movement
Actual: the layer stays inactive and you need to check the box (which you've never enabled)

I guess it is this bit (and could not find a comment why it is there) (source):

if (getRealValue() <= 0.001 && !getValueIsAdjusting()) {
	                setVisibleFlag(false);

Is there a reason for this feature? I would suggest to not automatically disable the "show" checkbox based on slider action. Thank you! :)

Attachments (1)

Screenshot_20160930_205619.png (20.7 KB ) - added by aseerel4c26 8 years ago.
screenshot of josm 7000

Download all attachments as: .zip

Change History (7)

comment:1 by michael2402, 8 years ago

The feature is there because of historical reasons. The visible boolean flag was there first, the slider came afterwards.

I don't even think that the visible flag is required any more. We could remove it and define a layer to be visible if it's visibility is not 0. The main reason I see is the visibility toggle button: It needs to know the old opacity.

The problem is that users may not really know what happens if they set the visibility to 0 - the layer is still marked as visible but they don't see anything.

comment:2 by aseerel4c26, 8 years ago

Thanks for the explanation.

I do not think that "users may not really know ..." is a problem. The user is using the slider actively to lower the opacity, so it should be obvious what the slider does. By the way: even with the current setup users "users may not really know ..." why a layer is not visible despite the "show" checkbox being ticked: imagine the user setting a opacity of 0.05. That's not really visible, but the "show" checkbox may still be enabled.

In addition: Currently I see the "visible" control at two places. The eye symbol in the layers and the checkbox in the visibility control popup. I do not think that we need an additional checkbox there.

Maybe someone else could share their thoughts!

comment:3 by aseerel4c26, 8 years ago

Description: modified (diff)

comment:4 by aseerel4c26, 8 years ago

I did a test with a user who never used JOSM before (only saw me using it sometimes). I showed him JOSM's slippy map, the layer list, the function of the eye icon (on/off of the layer) and the sliders (I moved the opacity slider around a bit and showed the effect on the map). He told me "ahh, this is like GIMP!" I asked the person to close his eyes. Then I set the opacity slider to a very low value (but not 0) making the map invisible. I asked the person to open eyes and asked: "why can't I see the map? What's wrong?" The user had a short look at the eye icon and then opened the visibility popup. Then he moved the opacity slider back up and told me "there it is!". This only took some seconds in total.

Taken into account that the opacity change is only valid for the layer's lifetime, I think the additional checkbox (compare with JOSM version 7000 below) in the popup and any automatic visibility status changes (which are based on the opacity slider) are superfluous.

Have a nice day!

Last edited 8 years ago by aseerel4c26 (previous) (diff)

by aseerel4c26, 8 years ago

screenshot of josm 7000

comment:5 by aseerel4c26, 7 years ago

Resolution: fixed
Status: newclosed

fixed in the meantime (except the duplicated visibility box - different, not that clear issue) - see #13703

comment:6 by michael2402, 7 years ago

About the duplicated visibility box: Try toggeling the visibility of a whole bunch of layers. You can simply select using shift and then use that visibility box. I used it some times when working with many layers.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain michael2402.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.