Add test for group layers and extract layer name from group layer path
This commit is contained in:
parent
f9d165da67
commit
ff8c99cd8d
1 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,11 @@ class FeatureRenderer:
|
|||
layers_to_render = []
|
||||
for input_layer in input_layers_list:
|
||||
present = False
|
||||
|
||||
# Test if layer is a group layer and extract layer name from path
|
||||
if "\\" in input_layer:
|
||||
input_layer = input_layer.split("\\")[-1]
|
||||
|
||||
for layer in map_layers:
|
||||
if layer.name == input_layer:
|
||||
layers_to_render.append(layer.name)
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue