From 681c3d11b4fc02c416467d074ef0b4d84bf0cdab Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 8 Jun 2024 00:54:56 +0200 Subject: config.yml: Allow configuration setting at the layer root. We'll need that for layer creation (description, fields, creation options, etc.). --- webmap-download | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmap-download') diff --git a/webmap-download b/webmap-download index 2724951..a4a6413 100755 --- a/webmap-download +++ b/webmap-download @@ -162,7 +162,7 @@ if __name__ == '__main__': sources = [] for name, layerdefs in common.config.get('layers', {}).items(): - for layerdef in layerdefs: + for layerdef in layerdefs['sources']: sourcedef = layerdef.get('source', {}) sourcedef['layername'] = name sources.append(sourcedef) -- cgit v1.2.3