If a resource contains multiple @mapview:ogc:wmsreferences, only the first one is evaluated. This has to be changed.
A major drawback of Template Resource Expansion for Background Layers is, that the content of the {$layer} URI variable of the getMap request is used as layer title in the layer control user interface element of the Map Component. However, some layer names are not very helpful for end users. In that case, the layer title should be used instead. The title, however, is part of the getCapabilities request and not of the getMap request. Therefore putting {$title} variable in the request URI is not only the wrong approach, it would also break the resource expansion algorithm implemented in https://github.com/clarity-h2020/csis-helpers-js/issues/8.
Since references consist of type, qualifier, path and title, the title property can be used as layer title in the UI.
If a resource contains multiple
@mapview:ogc:wms
references, only the first one is evaluated. This has to be changed.A major drawback of Template Resource Expansion for Background Layers is, that the content of the
{$layer}
URI variable of thegetMap
request is used as layer title in the layer control user interface element of the Map Component. However, some layer names are not very helpful for end users. In that case, the layer title should be used instead. The title, however, is part of thegetCapabilities
request and not of thegetMap
request. Therefore putting{$title}
variable in the request URI is not only the wrong approach, it would also break the resource expansion algorithm implemented in https://github.com/clarity-h2020/csis-helpers-js/issues/8.Since references consist of type, qualifier, path and title, the title property can be used as layer title in the UI.