Show/Hide all features

I am wondering if anyone knows if there is a way to show or hide on the map in QField all features within a vector layer. I know one can show or hide the whole layer on the map but that is not what I am looking for.

The reason for this is that I have a layer with lots of features. Sometimes I want to see all the features but other times I want to see only one or a few of the features. In QGIS if I have a layer that is categorized, I can click on “hide all items” and then click on each item I want to see. And if I want to see all the features, I can click on “show all items”. But I can’t seem to find a way to do a similar thing in QField.

The work around I have been using in QField is to have two identical layers. One has the all the features showing and the other has all the features hidden. If I want to see just one feature within the layer, I use the layer than has all the features hidden, click on “expand legend item” and then click on the feature I want to see. If I want to see all the features, I use the layer that has all the features showing. The problem with this work around is it requires I have two separate layers for every layer I want to do this with. There are other issues too.

Best,

David

hello @DavidW !

I don’t know of any equivalent functions to the “hide/show all items” on QField either. Maybe a better work around can be achieved by using the Map themes function (click the link to check the documentation). Haven’t tried it, but I guess you can:

  1. Make a “view” of your map with all the categories hidden on QGIS, save it as a map theme (as shown on the docs) with a name such as “all categories hidden”.
  2. Make another “view” with all the categories visible and save another theme as “show all categories”

These two should then work as sort of shortcuts to hiding and showing all of them, and from there you can choose to hide and show individual categories. Or even make predefined groups of visible categories, if that suits your use-case.

After that, you should be able to find the Map Theme selector at the top of the Layers/Legend view on the left-side menu of QField.

@cuprico, that is a nice creative work around. Thanks for that idea! I think it might work better than the work around I am currently using. I will try it out. Still, I have a bunch of layers and I already have a few themes to help me configure the project. I am often turning layers off and on and hiding labels and showing labels within QField. So with all these permutations, it is easier for me to not use the themes as much as just manipulate the project as I am using it. I like too that when I start QField it remembers the last configuration I was working with.

I guess I will go ahead and suggest this as a new idea for QField.

Yeah, it surely is not the same thing, and it sounds like it might be a pretty reasonable addition to QField. Maybe adding an extra column on the Legend panel with a selection toggle/check that allows to make simultaneous operations onto multiple layers/categories.

In any case, I’ll be sure to check your suggestion!

Hi @DavidW you could also try using this cool plugin maybe: Qfield Filter plugin

Hi @beanzmo . Thanks! I just gave it a try and it looks great. It accomplishes a lot of what I want to do. I made some suggestions on the plugin on things that would help it be even more useful to me.