Minor bugfix
This commit is contained in:
parent
becb46ab80
commit
d330a9743c
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ module.exports = function(options, repo, params, id, styles) {
|
||||||
return res.status(404).send('Not found');
|
return res.status(404).send('Not found');
|
||||||
} else {
|
} else {
|
||||||
if (tileJSON['format'] == 'pbf') {
|
if (tileJSON['format'] == 'pbf') {
|
||||||
|
data = zlib.unzipSync(data);
|
||||||
var style = req.query.style;
|
var style = req.query.style;
|
||||||
if (style && tileshrinkGl) {
|
if (style && tileshrinkGl) {
|
||||||
if (!shrinkers[style]) {
|
if (!shrinkers[style]) {
|
||||||
|
@ -95,7 +96,7 @@ module.exports = function(options, repo, params, id, styles) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (shrinkers[style]) {
|
if (shrinkers[style]) {
|
||||||
data = shrinkers[style](zlib.unzipSync(data), z, tileJSON.maxzoom);
|
data = shrinkers[style](data, z, tileJSON.maxzoom);
|
||||||
//console.log(shrinkers[style].getStats());
|
//console.log(shrinkers[style].getStats());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue