Ignore tiling scheme of the source for internal meta urls (#54)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user