Feature request #19769

Add a variable returning the current map theme

Added by Harrissou Santanna about 6 years ago. Updated about 6 years ago.

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

Description

Use case:
I have a print layout with a map item and a legend.
Depending on the current map theme, i'd like to hide the legend (eg, if i'm using the particular map theme that shows only aerial photography, i don't need a legend)


Related issues

Related to QGIS Application - Bug report #19674: Method theme() of QgsMapCanvas not in sync? Closed 2018-08-23

History

#1 Updated by Adam Szieberth about 6 years ago

Connects to #19674

#2 Updated by Jürgen Fischer about 6 years ago

Also available in: Atom PDF