Skip to content

Commit 79d0267

Browse files
committed
Omit services from landing page if marked as hidden_in_landing_page
1 parent b399580 commit 79d0267

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ogcapi_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,15 @@ def load_resources(self, config):
169169
wms_services = {}
170170
wfs_services = {}
171171
for wms in config.resources().get('wms_services', []):
172+
if wms.get('hidden_in_landing_page') == True:
173+
continue
172174
wms_services[wms['name']] = {
173175
"title": wms.get("root_layer", {}).get("title"),
174176
"layers": self.collect_resource_layers(wms.get("root_layer", {}).get("layers", []))
175177
}
176178
for wfs in config.resources().get('wfs_services', []):
179+
if wfs.get('hidden_in_landing_page') == True:
180+
continue
177181
wfs_services[wfs['name']] = {
178182
"title": wfs.get("title"),
179183
"layers": self.collect_resource_layers(wfs.get("layers", []))

0 commit comments

Comments
 (0)