valid tiles are >= z12

This commit is contained in:
karenzshea
2016-10-12 09:54:09 -04:00
parent 32dcce88f7
commit ee012ae2da
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -64,7 +64,8 @@ struct TileParameters final
// https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#X_and_Y
const auto valid_x = x <= static_cast<unsigned>(std::pow(2., z)) - 1;
const auto valid_y = y <= static_cast<unsigned>(std::pow(2., z)) - 1;
const auto valid_z = z < 20;
// zoom limits are due to slippy map and server performance limits
const auto valid_z = z < 20 && z >= 12;
return valid_x && valid_y && valid_z;
};