Skip to content

Commit

Permalink
Add category_sublayer attribute to theme sublayer entry
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 7, 2024
1 parent 041b693 commit 6d738ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config_generator/capabilities_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def collect_wms_layers(self, layer, layer_names, internal_print_layers, ns, np,
else:
wms_layer['visible'] = layer.get('visible') == '1'
wms_layer['geometryType'] = layer.get('geometryType')
wms_layer['category_sublayer'] = layer.get('category_sublayer') == '1'

wms_layer['queryable'] = layer.get('queryable') == '1'
if wms_layer['queryable'] and layer.get('displayField'):
Expand Down
1 change: 1 addition & 0 deletions src/config_generator/map_viewer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ def collect_layers(self, layer, search_layers, level, collapseBelowLevel, extern
# layer
item_layer['visibility'] = layer['visible']
item_layer['geometryType'] = layer['geometryType']
item_layer['category_sublayer'] = layer['category_sublayer']
item_layer['queryable'] = layer['queryable']
item_layer['styles'] = layer['styles']
if 'default' in item_layer['styles']:
Expand Down

0 comments on commit 6d738ed

Please sign in to comment.