Skip to content

Commit 032c0f7

Browse files
committed
Reword custom legend image help
1 parent ba17eb5 commit 032c0f7

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/topics/LegendGraphics.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,7 @@ You can customize the `GetLegendGraphics` request by specifying additional query
88
## Providing custom legend images
99
You can provide custom legend images by [enabling](../configuration/ServiceConfiguration.md#enabling-services) the `qwc-legend-service`.
1010

11-
Configure `legend_images_path` in the `legend` service configuration in `tenantConfig.json`:
12-
```json
13-
{
14-
"name": "legend",
15-
"config": {
16-
"default_qgis_server_url": "http://qwc-qgis-server/ows/",
17-
"legend_images_path": "/legends/"
18-
}
19-
}
20-
```
21-
22-
*Note:* The legend folder needs to be mounted into the `qwc-legend-service` container, i.e.:
11+
Mount the legend folder into the `qwc-legend-service` container, i.e.:
2312
```yml
2413
qwc-legend-service:
2514
image: sourcepole/qwc-feature-info-service:vYYYY.MM.DD
@@ -28,6 +17,16 @@ Configure `legend_images_path` in the `legend` service configuration in `tenantC
2817
- ./volumes/legends:/legends
2918
```
3019
20+
*Note:* If mounting to another location than `/legends`, set the `legend_images_path` in the `legend` service configuration in `tenantConfig.json`:
21+
```json
22+
{
23+
"name": "legend",
24+
"config": {
25+
"legend_images_path": "/<path>/"
26+
}
27+
}
28+
```
29+
3130
Then, legend images will be searched for in this order (the first one found is used):
3231

3332
* A `<legend_images_path>/<service_name>/<layername><suffix>.png` file, where

0 commit comments

Comments
 (0)