valid tiles are >= z12
This commit is contained in:
parent
32dcce88f7
commit
ee012ae2da
@ -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;
|
||||
};
|
||||
|
@ -372,8 +372,7 @@ Status TilePlugin::HandleRequest(const std::shared_ptr<datafacade::BaseDataFacad
|
||||
};
|
||||
|
||||
// If we're zooming into 16 or higher, include turn data. Why? Because turns make the map
|
||||
// really
|
||||
// cramped, so we don't bother including the data for tiles that span a large area.
|
||||
// really cramped, so we don't bother including the data for tiles that span a large area.
|
||||
if (parameters.z >= MIN_ZOOM_FOR_TURNS)
|
||||
{
|
||||
// Struct to hold info on all the EdgeBasedNodes that are visible in our tile
|
||||
|
Loading…
Reference in New Issue
Block a user