Minor WMTS link bugfix

This commit is contained in:
Petr Sloup
2016-06-29 16:20:44 +02:00
parent 6898be5bea
commit ebd6662ebb
2 changed files with 3 additions and 3 deletions

View File

@@ -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';
}
});