File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,7 @@ You can customize the `GetLegendGraphics` request by specifying additional query
88## Providing custom legend images
99You 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+
3130Then, 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
You can’t perform that action at this time.
0 commit comments