| 322 | } |
| 323 | |
| 324 | double GetZoomLevel(double screenScale) |
| 325 | { |
| 326 | VisualParams const & p = VisualParams::Instance(); |
| 327 | auto const pxLen = static_cast<double>(p.GetTileSize()); |
| 328 | auto const len = pxLen * screenScale; |
| 329 | auto const factor = mercator::Bounds::kRangeX / len; |
| 330 | return math::Clamp(GetDrawTileScale(fabs(std::log2(factor))), 1.0, scales::GetUpperStyleScale() + 1.0); |
| 331 | } |
| 332 | |
| 333 | float CalculateRadius(ScreenBase const & screen, ArrayView<float> const & zoom2radius) |
| 334 | { |
no test coverage detected