Revert "fix: try to add attribution to wmts"

This reverts commit b8d858f2c6d6354ea54a7fe18d08bb50d8f28219.
This commit is contained in:
Andrew Calcutt 2024-01-29 01:14:11 -05:00
parent b224678db0
commit 55abcd0061
2 changed files with 0 additions and 6 deletions

View file

@ -778,8 +778,4 @@
</TileMatrixSet>
</Contents>
<ServiceMetadataURL xlink:href="{{baseUrl}}styles/{{id}}/wmts.xml"/>
<Attribution>
<Title>{{tileJSON.attribution}}</Title>
<OnlineResource xlink:type="simple" xlink:href="{{baseUrl}}styles/{{id}}/wmts.xml"/>
</Attribution>
</Capabilities>

View file

@ -558,7 +558,6 @@ function start(opts) {
*/
serveTemplate('/styles/:id/wmts.xml', 'wmts', (req) => {
const { id } = req.params;
const { tileJSON } = serving.rendered[id];
const wmts = clone((serving.styles || {})[id]);
if (!wmts) {
@ -583,7 +582,6 @@ function start(opts) {
return {
...wmts,
id,
tileJSON,
name: (serving.styles[id] || serving.rendered[id]).name,
baseUrl,
};