Minor WMTS link bugfix
This commit is contained in:
parent
6898be5bea
commit
ebd6662ebb
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
{{#if serving_rendered}}
|
||||
| <a href="/styles/{{@key}}/rendered.json{{&../access_key_query}}">TileJSON</a>
|
||||
{{#if wmts_link}}
|
||||
| <a href="{{wmts_link}}">WMTS Service</a>
|
||||
| <a href="{{&wmts_link}}">WMTS Service</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</p>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<p>Id: {{@key}} |{{#if formatted_filesize}} {{formatted_filesize}} |{{/if}} {{#is_vector}}Vector{{/is_vector}}{{^is_vector}}Raster{{/is_vector}} data
|
||||
| <a href="/data/{{@key}}.json{{&../access_key_query}}">TileJSON</a>
|
||||
{{#if wmts_link}}
|
||||
| <a href="{{wmts_link}}">WMTS Service</a>
|
||||
| <a href="{{&wmts_link}}">WMTS Service</a>
|
||||
{{/if}}
|
||||
</p>
|
||||
{{#is_vector}}
|
||||
|
|
|
@ -202,7 +202,7 @@ module.exports = function(opts, callback) {
|
|||
var query = req.query.key ? ('?key=' + req.query.key) : '';
|
||||
style.wmts_link = 'https://wmts.maptiler.com/' +
|
||||
new Buffer(req.protocol + '://' + req.headers.host +
|
||||
'/styles/' + id + 'rendered.json' + query).toString('base64') +
|
||||
'/styles/' + id + '/rendered.json' + query).toString('base64') +
|
||||
'/wmts';
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue