QField icon indicating copy to clipboard operation
QField copied to clipboard

[Enhancement] Make it faster to show/hide layers

Open Malvineous opened this issue 1 year ago • 5 comments

Currently, in order to show/hide a layer, you have to open the layer list, press and hold for a few seconds on the layer, then tick a box to show or hide it, then press on the map to close the layer list.

This process is very slow if you want to quickly show or hide a layer, for example to hide one with labels that are obscuring your view, but then show it again to remind yourself what the labels said.

I would like to request a quicker way of showing and hiding layers.

One suggestion that might be quick to implement is to allow a layer to be double-tapped to toggle its visibility. Currently double-tapping a layer does nothing (it only expands or shrinks a double-tapped group) so this might be a good way to put an otherwise unused action to good use.

Malvineous avatar Apr 16 '23 03:04 Malvineous

I would also love to see that function. Our field workers are happy with the application but we often need to turn on or turn off some layers (especially when working with imagery). It just takes too much time for them, to change the visibility of the layers. Double tapping the layer to change the visibility would be great!

felixpekarek avatar Apr 25 '23 09:04 felixpekarek

Note you can use "map themes" as in the sample bee project to have a dropdown with preconfigured visible layers.

suricactus avatar Apr 26 '23 05:04 suricactus

A quicker way to show and hide layers is a must, but why not a tick box in front of layers name like in QGIS ?

The chosen solution must take into account all the interactions with the different layers.

  • show/hide (the quickest action)
  • change opacity
  • change order
  • ?

Now exist only one way

  • long press = sub menu > show/hide and change opacity

My proposition

  • tick box = show/hide
  • long press = change order
  • tap (or double tap ?) opacity slader

hensjl avatar Apr 26 '23 15:04 hensjl

There is a limit somewhere in how much detail-management via QField makes sense. In my opinion the implementation of change order possibilty and an opacity-slider would be an overkill, adding complexity to the UI for functions which may not be needed by most users and distracting to some. As mentioned, this can be done via prepared Themes.

Why allowing show/hide anyway? It is the most basic way of customizing a theme, which is needed e.g. if the layers in a theme become unforeseeably cluttered or you want examine something quickly.

The quickest way to turn on/off layers would be a double tap.

larslund avatar May 24 '23 20:05 larslund

I believe this is a must too! In my opinion, just a little "eye" icon to the right of the layer in the left pane would do the trick and look good. I would also like to add that an easier way to explode/implode layers would be very useful too. It could only be by tapping the arrow left of the layer. Since both features are currently accessible by long pressing the layer, I thought it was worth mentioning this too.

jfdarveau avatar Feb 10 '24 16:02 jfdarveau

This has been implemented, enjoy! :)

nirvn avatar Aug 02 '24 09:08 nirvn

The feature works really well! Thanks for implementing it!

Malvineous avatar Aug 02 '24 12:08 Malvineous