valid tiles are >= z12
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user