Revert "fix: try to add attribution to wmts"
This reverts commit b8d858f2c6d6354ea54a7fe18d08bb50d8f28219.
This commit is contained in:
parent
b224678db0
commit
55abcd0061
2 changed files with 0 additions and 6 deletions
|
|
@ -778,8 +778,4 @@
|
||||||
</TileMatrixSet>
|
</TileMatrixSet>
|
||||||
</Contents>
|
</Contents>
|
||||||
<ServiceMetadataURL xlink:href="{{baseUrl}}styles/{{id}}/wmts.xml"/>
|
<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>
|
</Capabilities>
|
||||||
|
|
|
||||||
|
|
@ -558,7 +558,6 @@ function start(opts) {
|
||||||
*/
|
*/
|
||||||
serveTemplate('/styles/:id/wmts.xml', 'wmts', (req) => {
|
serveTemplate('/styles/:id/wmts.xml', 'wmts', (req) => {
|
||||||
const { id } = req.params;
|
const { id } = req.params;
|
||||||
const { tileJSON } = serving.rendered[id];
|
|
||||||
const wmts = clone((serving.styles || {})[id]);
|
const wmts = clone((serving.styles || {})[id]);
|
||||||
|
|
||||||
if (!wmts) {
|
if (!wmts) {
|
||||||
|
|
@ -583,7 +582,6 @@ function start(opts) {
|
||||||
return {
|
return {
|
||||||
...wmts,
|
...wmts,
|
||||||
id,
|
id,
|
||||||
tileJSON,
|
|
||||||
name: (serving.styles[id] || serving.rendered[id]).name,
|
name: (serving.styles[id] || serving.rendered[id]).name,
|
||||||
baseUrl,
|
baseUrl,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue