Layer legend for WMTS not shown even if explicitly set
Issue #622
resolved
In Version 2.8.0 the legend of a WMTS Layer is not loaded even if an explicit URL is set, e.g.
{
"id": "topplus_wmts",
"name": "TopPlusOpen",
"capabilitiesUrl": "https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",
"urls": "https://sgx.geodatenzentrum.de/wmts_topplus_open",
"optionsFromCapabilities": true,
"typ": "WMTS",
"layers": "web",
"format": "image/png",
"version": "1.0.0",
"origin": [-20037508.3428, 20037508.3428],
"style": "default",
"transparent": true,
"tileSize": "256",
"minScale": "3000",
"maxScale": "2500000",
"tileMatrixSet": "EU_EPSG_25832_TOPPLUS",
"coordinateSystem": "EPSG:3857",
"legend": "https://sg.geodatenzentrum.de/wms_topplus_open?styles=&layer=web&service=WMS&format=image/png&sld_version=1.1.0&request=GetLegendGraphic&version=1.1.1",
"requestEncoding": "REST",
"resLength": "18",
"layerAttribution": "Quellenvermerk: © Bundesamt für Kartographie und Geodäsie",
"datasets": [
{
"md_id": "1B115542-114F-4E11-992E-CB0677898650"
}
]
}
The behaviour is observed for both "optionsFromCapabilities": true
and "optionsFromCapabilities": false
.
The legend url https://sg.geodatenzentrum.de/wms_topplus_open?styles=&layer=web&service=WMS&format=image/png&sld_version=1.1.0&request=GetLegendGraphic&version=1.1.1 is valid and does return a png image.
Best,
Dominik
Comments (4)
-
reporter -
- changed status to open
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
Wir nutzen in Hamburg keine WMTS-Layer, daher bearbeiten wir keine Tickets zu dem Thema. Die Doku wurde angepasst, da es ja mit einem String[] funktioniert.
- Log in to comment
Workaround:
The issue does not occur if the legend is set as an array with one element:
In that case the legend is loaded normally.