add public_url option

This commit is contained in:
Alban Mouton
2017-10-18 13:51:37 +02:00
parent 82f179b07c
commit 875521c5a8
10 changed files with 92 additions and 38 deletions
+5
View File
@@ -6,6 +6,11 @@ var path = require('path'),
var clone = require('clone'),
glyphCompose = require('glyph-pbf-composite');
module.exports.getPublicUrl = function(publicUrl, req) {
return publicUrl || (req.protocol + '://' + req.headers.host + '/')
}
module.exports.getTileUrls = function(req, domains, path, format, aliases) {
if (domains) {