I am working with QGIS 3.14 and 3.16 on Mac and Windows and I am really struggling in finding a way to remove disabled map layers in the legend view of the Layout Composer. In prior versions there was this "Filter legend by map content" button (see here: https://docs.qgis.org/3.4/en/docs/user_manual/print_composer/composer_items/composer_legend.html#legend-items) but this option seems to be removed for any reason (see here https://docs.qgis.org/3.16/en/docs/user_manual/print_composer/composer_items/composer_legend.html#legend-items)
The "Filter legend by map content" button is still available from the layer panel but this is not working for the legend in the layout. I also tried the legend item checkbox "Only show items inside linked map" without any success.
Are there any ideas or hints how to solve this issue?
Maybe it can be filtered using an expression - but how is the script looking that filters all visible/enabled map layers for the layout legend
I am wondering because usually you have a lot of work data inside a GIS project and want to display only few of them on a map, so I think I am not alone with this issue.
automated update
and tickonly show items inside linked map
this works as you want it to. Nonwithstanding the issue, that the automated legend looks... sloppy.update all
button beside theautomated update
box, as the later is not always catching map changes...