Skip to content

Commit

Permalink
Add RuleRenderer case. (#946)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Oct 7, 2024
1 parent d46fcbc commit 6a54c30
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion g3w-admin/qdjango/server_filters/legend/getlegendgraphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,15 @@ def responseComplete(self):

renderer = layer.renderer()

if renderer.type() in ("categorizedSymbol", "ruleBased", "graduatedSymbol","graduatedSymbol"):
renderer_types = (
"categorizedSymbol",
"ruleBased",
"graduatedSymbol",
"graduatedSymbol",
"RuleRenderer"
)

if renderer.type() in renderer_types:
body = handler.body()
json_data = json.loads(bytes(body))
categories = {item.label(): {'ruleKey': item.ruleKey(), 'checked': renderer.legendSymbolItemChecked(
Expand Down

0 comments on commit 6a54c30

Please sign in to comment.