Skip to content

Commit

Permalink
Merge pull request #124 from opengisch/systemlayers
Browse files Browse the repository at this point in the history
option to hide the systemlayers
  • Loading branch information
signedav authored Nov 27, 2024
2 parents 6ab186b + 7f03e65 commit 4c2dc15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modelbaker/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ def legend(
ignore_node_names=None,
layertree_structure=None,
path_resolver=lambda path: path,
hide_systemlayers=False,
):
legend = LegendGroup(
QCoreApplication.translate("LegendGroup", "root"),
Expand Down Expand Up @@ -793,7 +794,7 @@ def legend(
for layer in domain_layers:
domains.append(layer)
legend.append(domains)
if len(system_layers):
if len(system_layers) and not hide_systemlayers:
system = LegendGroup(
QCoreApplication.translate("LegendGroup", "system")
)
Expand Down

0 comments on commit 4c2dc15

Please sign in to comment.