- changed status to open
WMTS layers can not be part of a group layer. They work perfecctly fine individually, but loading the layer fails as soon as they are part of a group in Version 2.8.0 (version can not be selected in the dropdown):
Example layer definition:
{
"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"
}
]
}
works fine as long as included individually like
{
"id": "topplus_wmts"
}
but crashes if included as a group:
{
"id": "group_base",
"name": "TopPlusOpen (base)",
"children": [{
"id": "topplus_wmts"
},{
"id": "alkis_sw_bg"
}],
"visibility": true
}
In the latter case an exception “Uncaught (in promise) TypeError: t.getSource() is null” is thrown followed by a “Uncaught (in promise) TypeError: this.collection is undefined” (I’ll spare you the stack trace for it is the minimized one that is not really helping).
Best,
Dominik Fröhlich