Ignore tiling scheme of the source for internal meta urls (#54)

This commit is contained in:
Petr Sloup 2016-09-30 09:50:05 +02:00
parent 820dbdd3dd
commit 18ba6f5059

View file

@ -202,6 +202,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
// meta url which will be detected when requested // meta url which will be detected when requested
'mbtiles://' + name + '/{z}/{x}/{y}.' + (info.format || 'pbf') 'mbtiles://' + name + '/{z}/{x}/{y}.' + (info.format || 'pbf')
]; ];
delete source.scheme;
if (source.format == 'pbf') { if (source.format == 'pbf') {
map.sources[name].emptyTile = new Buffer(0); map.sources[name].emptyTile = new Buffer(0);
} else { } else {