forked from organicmaps/organicmaps
Get maximal rect size in scale calculation.
This commit is contained in:
parent
d384240901
commit
5d4c7e6c04
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ int ScalesProcessor::GetTileScaleBase(ScreenBase const & s) const
|
|||
|
||||
int ScalesProcessor::GetTileScaleBase(m2::RectD const & r) const
|
||||
{
|
||||
double const sz = min(r.SizeX(), r.SizeY());
|
||||
double const sz = max(r.SizeX(), r.SizeY());
|
||||
return max(1, my::rounds(log((MercatorBounds::maxX - MercatorBounds::minX) / sz) / log(2.0)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue