Merge pull request #487 from bheupers/patch-1

Render up to scale level 22
This commit is contained in:
Petr Sloup 2020-11-04 18:58:32 +01:00 committed by GitHub
commit 644db6cd8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,7 +375,7 @@ module.exports = {
scale = getScale(req.params.scale),
format = req.params.format;
if (z < 0 || x < 0 || y < 0 ||
z > 20 || x >= Math.pow(2, z) || y >= Math.pow(2, z)) {
z > 22 || x >= Math.pow(2, z) || y >= Math.pow(2, z)) {
return res.status(404).send('Out of bounds');
}
const tileSize = 256;