<title>QWC Legend Service</title>
QWC Legend Service
Type: objectJSON Schema
Type: stringFormat: uri Default: "https://raw.githubusercontent.com/qwc-services/qwc-legend-service/v2/schemas/qwc-legend-service.json"Reference to JSON schema of this config
Service name
Type: constSpecific value:
"legend"
Config options
Type: objectDefault base URL for forwarding WMS GetLegendGraphics requests. Default: http://localhost:8001/ows/
Default font size for GetLegendGraphic request. Default: null
Path to legend images (required if using legend_image
). Default: /legends/
Login verification URL for requests with basic auth. Example: http://qwc-auth-service:9090/verify_login
. Default: null
Each item of this array must be:
Resources
Type: objectWMS services
Type: array of objectNo Additional Items
Each item of this array must be:
WMS service
Type: objectWMS service with nested layers and group layers
WMS service name
Root layer of WMS (layer or group layer)
Layer
Type: objectSingle layer
No Additional PropertiesWMS layer name
Layer type
Specific value:"layer"
Legend image path relative to 'legendimagespath'
Legend image in Base64 encoding
Group Layer
Type: objectGroup layer with nested sublayers
No Additional PropertiesWMS group layer name
Layer type
Specific value:"layergroup"
Sublayers of this group layer (layers or group layers)
No Additional ItemsEach item of this array must be:
Hide sublayers of this group layer if set, to make the group layer look like a regular layer (Facade layer)
Legend image path relative to 'legendimagespath' (only if hide_sublayers is set)
Legend image in Base64 encoding (only if hide_sublayers is set)