File tree 1 file changed +11
-12
lines changed
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
8
8
## Providing custom legend images
9
9
You can provide custom legend images by [ enabling] ( ../configuration/ServiceConfiguration.md#enabling-services ) the ` qwc-legend-service ` .
10
10
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.:
23
12
``` yml
24
13
qwc-legend-service :
25
14
image : sourcepole/qwc-feature-info-service:vYYYY.MM.DD
@@ -28,6 +17,16 @@ Configure `legend_images_path` in the `legend` service configuration in `tenantC
28
17
- ./volumes/legends:/legends
29
18
` ` `
30
19
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
+
31
30
Then, legend images will be searched for in this order (the first one found is used) :
32
31
33
32
* A `<legend_images_path>/<service_name>/<layername><suffix>.png` file, where
You can’t perform that action at this time.
0 commit comments