I'm attempting to produce a series of maps in QGIS, each showing a different layer overlaid over the same region, each with an associated different title and legend to match each layer. I'm stuck with trying to figure out how to extract the name of each map based on the specific layer shown.
For example, one layer is named Opt1_00010Y_Critical_h_Max
, and I want to be able to extract a text box to the print layout that will draw out the Opt1
, 00010Y
and h_Max
elements to create a map label saying Option 1, 10 Year, Flood Depth
. And then to be able to set up a function that will do this for each map automatically.