Feature request #19745

Add a function to list layers with features actually visible in a layout map item

Added by Harrissou Santanna over 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Expressions
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:27570

Description

Thanks to map_layers variable, it's possible to get the list of layers used in a layout map item. However, the list returned is fetched from either the currently visible layers of the Layers panel or the map theme associated to the map item. This means that even layers whose features are not displayed in the layout are also listed.

It could be nice to have a way to get the actual list of layers shown in the map item extent (like the legend item option filter by map content).

Also available in: Atom PDF