You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`"id": "<id>",`| Theme identificator. Autogenerated if not specified. |
136
+
|`"url": "<WMS URL>",`| The address of desired WMS served by QGIS Server. |
137
137
|`"additionalMouseCrs": ["<EPSG code>"],`| Optional, list of additional projections for displaying the mouse position. WGS84 and `mapCrs` are available by default. Additional projections definitions must be added to `config.json`. |
138
138
|`"attribution": "<Attribution>",`| Optional, attribution which will be shown in the bottom right corner of the map. |
139
139
|`"attributionUrl": "<URL>",`| Optional, link associated to the attribution |
140
140
|`"backgroundLayers": [{,`| Optional, list of available background layers, defaults to `defaultBackgroundLayers`. |
141
141
|` "name": "<Background layer name>",`| Name of matching `BackgroundLayerDefinition`, see [below](#background-layers). |
142
+
|` "overview": <boolean>,`| Optional, set the layer as the overview map layer (i.e. this layer will be displayed in the overview map regardless of the background layer visible in the main map). |
142
143
|` "printLayer": "<layer name>"\|[<list>],`| Optional, a QGIS layer name or layer resource string to use as matching background layer when printing. Alternatively, a list `[{"maxScale": <scale>, "name": "<layer name>"}, ..., {"maxScale": null, "name": "<layer name>"}]` can be provided, ordered in ascending order by `maxScale`. The last entry should have `maxScale``null`, as the layer used for all remaining scales. If omitted, no background is printed, unless layer is of type `wms` and `printExternalLayers` is `true` in the Print plugin configuration. See [Printing](../topics/Printing.md). |
143
-
|` "visibility": <boolean>`, | Optional, initial visibility of the layer when theme is loaded. |
144
-
|` "overview": <boolean>`, | Optional, set the layer as the overview map layer (i.e. this layer will be displayed in the overview map regardless of the background layer visible in the main map). |
144
+
|` "visibility": <boolean>`| Optional, initial visibility of the layer when theme is loaded. |
145
145
|`}],`||
146
146
|`"collapseLayerGroupsBelowLevel": <level>,`| Optional, layer tree level below which to initially collapse groups. By default the tree is completely expanded. |
147
147
|`"config": {`| Optional, per-theme configuration entries which override the global entries in `config.json`, see [Viewer Configuration](ViewerConfiguration.md).|
148
148
|` "<...>": ...,`| Global config settings overridden in theme, see [`config.json`](ViewerConfiguration.md#theme-overridable-settings). |
149
-
|` "plugins": {...},`| Plugin configuration overridden in theme, See [`config.json`](ViewerConfiguration.md#plugin-configuration). |
150
149
|` "desktop": {...},`| Desktop specific global and plugin configuration overridden in theme. |
151
-
|` "mobile": {...}`| Mobile specific global and plugin configuration overridden in theme. |
150
+
|` "mobile": {...},`| Mobile specific global and plugin configuration overridden in theme. |
151
+
|` "plugins": {...}`| Plugin configuration overridden in theme, See [`config.json`](ViewerConfiguration.md#plugin-configuration). |
152
152
|`}`||
153
153
|`"defaultDisplayCrs": "<EPSG code>",`| Optional, defines default measuring CRS for coordinates used in BottomBar and Measure, defaults to mapCrs/project projection. |
154
154
|`"defaultPrintLayout": "<name>",`| Optional, name of print layout to select by default. |
155
155
|`"description": "<Description>",`| Optional, an additional description to show below the theme title. |
156
156
|`"editConfig": {<editConfig>} `| Optional, object containing the editing configuration for the theme, see [Editing](../topics/Editing.md#edit-config). Usually auto-generated by the ConfigGenerator. |
|`"printLabelForAttribution": "<ID>",`| Optional, an ID of a print layout label to which the current attribution text (if any) will be written to when printing. |
193
193
|`"printLabelForSearchResult": "<ID>",`| Optional, an ID of a print layout label to which the current search result text (if any) will be written to when printing. |
194
194
|`"printResolutions": [<DPIs>],`| List of available print resolutions. If an empty list, resolutions are freely choseable. If omitted, defaults to `defaultPrintResolutions`. |
195
195
|`"printScales": [<Scale denominators>],`| List of denominators of allowed print scales. If omitted, defaults to `defaultPrintScales`. |
196
196
|`"skipEmptyFeatureAttributes": <boolean>,`| Optional, whether to skip empty attributes in the identify results. Default is `false`. |
197
197
|`"themeInfoLinks": {`| Optional, custom links to additional resources, shown as a menu in the theme selector in the theme switcher. |
198
+
|` "entries": ["<link_name>", ...],`| List of theme info link names, see [below](#theme-info-links). |
198
199
|` "title": "<Menu title>",`| An arbitrary string shown as title of the menu. |
199
-
|` "titleMsgId": "<Menu title msgID>",`| Alternative to `title`, a message ID, translated through the translation files. |
200
-
|` "entries": ["<link_name>", ...]`| List of theme info link names, see [below](#theme-info-links). |
200
+
|` "titleMsgId": "<Menu title msgID>"`| Alternative to `title`, a message ID, translated through the translation files. |
|`"thumbnail": "<Filename>",`| Optional, image file in `assets/img/mapthumbs` (see [Viewer assets](ViewerConfiguration.md#viewer-asset)). If omitted, `<project_basename>.png` will be used if it exists below `assets/img/mapthumbs`, otherwise it is autogenerated via WMS GetMap. |
@@ -210,14 +210,14 @@ The format of the theme definitions is as follows:
210
210
|`"searchProviders": ["<Provider>"],`| Optional, list of search providers, see [Search](../topics/Search.md). Defaults to `defaultSearchProviders`. |
211
211
|`"visibilityPresetsBlacklist": ["<name>", ...],`| Optional: list of visibility presets (QGIS layer themes) to exclude. You can use`*` as a wildcard character. |
212
212
|`"watermark": {`| Optional, configuration of watermark to add to raster export images. |
213
-
|` "text": "<text>",`| Arbitrary text. |
214
-
|` "texpadding": <number>,`| Optional, padding between text and frame, in points. |
215
-
|` "fontsize": <number>,`| Optional, font size. |
216
-
|` "fontfamily": "<Font family>",`| Optional, font family. |
217
-
|` "fontcolor": "#RRGGBB",`| Optional, font color. |
|` "fontcolor": "#RRGGBB",`| Optional, font color. |
217
+
|` "fontfamily": "<Font family>",`| Optional, font family. |
218
+
|` "fontsize": <number>,`| Optional, font size. |
219
+
|` "text": "<text>",`| Arbitrary text. |
220
+
|` "texpadding": <number>`| Optional, padding between text and frame, in points. |
221
221
|`},`||
222
222
|`"wmsBasicAuth": "{`| Optional, allows to authenticate to QGIS Server during themes.json generation. NOTE: these credentials will solely be used by `yarn run themesConfig` and won't be stored in `themes.json`.|
0 commit comments