Skip to content

Commit 73d44fe

Browse files
committed
Document that map projection is read from project
1 parent 24d33b0 commit 73d44fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/configuration/ThemesConfiguration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The first step is to prepare a QGIS project for publishing. Besides the common t
1414

1515
| What | Where | Description |
1616
|----------------------|-------------------------------------------|--------------------------------------------------|
17+
| Map projection | Project Properties → CRS | Map projection used in QWC. |
1718
| Service Metadata | Project Properties → QGIS Server → Service capabilities | Shown in the theme info dialog, invokable from the Layer Tree panel titlebar. |
1819
| Title, keywords | Project Properties → QGIS Server → Service capabilities | Theme title, displayed in the Theme Switcher, and keywords, useful for filtering. |
1920
| Map extent | Project Properties → QGIS Server → WMS → Advertised extent | The extent used as initial map extent when loading the theme, unless overridden in `themesConfig.json`. |
@@ -59,7 +60,7 @@ The next step is to configure the theme for QWC. There are two approaches:
5960

6061
### Automatic theme configuration <a name="automatic-theme-configuration"></a>
6162

62-
When using `qwc-docker`, save your QGIS projects below `qwc-docker/volumes/qgs-resources/scan`. Adjust the default settings (`defaultMapCrs`, `defaultBackgroundLayers`, etc.) as desired in `qwc-docker/volumes/config-in/<tentant>/themesConfig.json`. Then [generate the theme configuration](#generating-theme-configuration).
63+
When using `qwc-docker`, save your QGIS projects below `qwc-docker/volumes/qgs-resources/scan`. Adjust the default settings (`defaultBackgroundLayers`, `defaultSearchProviders`, etc.) as desired in `qwc-docker/volumes/config-in/<tentant>/themesConfig.json`. Then [generate the theme configuration](#generating-theme-configuration).
6364

6465
You can configure an automatically configured theme as default theme by setting `defaultTheme` in `themesConfig.json` to the path to the QGIS project file below `qwc-docker/volumes/qgs-resources`, without the `.qgs` extension. For example to set `qwc-docker/volumes/qgs-resources/scan/project.qgs` as default theme, you'd write
6566

@@ -112,7 +113,6 @@ The `themesConfig.json` file contains a list of themes, optionally organized in
112113
...
113114
],
114115
},
115-
"defaultMapCrs": "<Default map crs, defaults to EPSG:3857>",
116116
"defaultBackgroundLayers": "<Default background layers, see theme definition below>",
117117
"defaultWMSVersion": "<Default WMS version, i.e. 1.3.0>",
118118
"defaultScales": [<Scale denominators, see theme definition below>],
@@ -134,7 +134,7 @@ The format of the theme definitions is as follows:
134134
|-------------------------------------------------|-----------------------------------------------------------------------------------|
135135
| `"id": "<id>",` | Theme identificator. Autogenerated if not specified. |
136136
| `"url": "<WMS URL>",` | The address of desired WMS served by QGIS Server. |
137-
| `"mapCrs": "<EPSG code>",` | Optional, map projection, defaults to `defaultMapCrs`. |
137+
| `"mapCrs": "<EPSG code>",` | Optional, map projection, defaults to project projection. |
138138
| `"wmsOnly": <true|false>` | Optional, whether the entry should only be configured as a WMS, and not as a theme. |
139139
| `"title": "<Custom title>",` | Optional, override WMS title. |
140140
| `"description": "<Description>",` | Optional, an additional description to show below the theme title. |

0 commit comments

Comments
 (0)