missing public_url in tiles urls

This commit is contained in:
Alban Mouton
2017-10-18 14:49:10 +02:00
parent 47ff33166d
commit dc6be5047c
4 changed files with 18 additions and 14 deletions

View File

@@ -97,7 +97,7 @@ function createEmptyResponse(format, color, callback) {
});
}
module.exports = function(options, repo, params, id, dataResolver) {
module.exports = function(options, repo, params, id, publicUrl, dataResolver) {
var app = express().disable('x-powered-by');
var maxScaleFactor = Math.min(Math.floor(options.maxScaleFactor || 3), 9);
@@ -736,7 +736,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
app.get('/' + id + '.json', function(req, res, next) {
var info = clone(tileJSON);
info.tiles = utils.getTileUrls(req, info.tiles,
'styles/' + id, info.format);
'styles/' + id, info.format, publicUrl);
return res.send(info);
});