need to add the query parameter to the url.

This commit is contained in:
Joseph Canero 2017-10-03 17:28:26 -04:00
parent 095c175572
commit cc08fa1323

View file

@ -37,7 +37,7 @@ module.exports.getTileUrls = function (req, domains, path, format, aliases, opti
var key = req.query.key;
var queryParams = [];
if (req.query[options.auth.keyName]) {
queryParams.push(options.auth.keyName + '=' + req.query);
queryParams.push(options.auth.keyName + '=' + req.query[options.auth.keyName]);
}
if (req.query.style) {
queryParams.push('style=' + req.query.style);