| 26 | int constexpr kAsterTilesLatBottom = -60; |
| 27 | |
| 28 | void MercatorRectToTilesRange(m2::RectD const & rect, int & left, int & bottom, int & right, int & top) |
| 29 | { |
| 30 | auto const leftBottom = mercator::ToLatLon(rect.LeftBottom()); |
| 31 | auto const rightTop = mercator::ToLatLon(rect.RightTop()); |
| 32 | |
| 33 | left = static_cast<int>(floor(leftBottom.m_lon)); |
| 34 | bottom = static_cast<int>(floor(leftBottom.m_lat)); |
| 35 | right = std::min(179, static_cast<int>(floor(rightTop.m_lon))); |
| 36 | top = std::min(89, static_cast<int>(floor(rightTop.m_lat))); |
| 37 | } |
| 38 | |
| 39 | std::string GetTileProfilesDir(std::string const & tilesDir) |
| 40 | { |
no test coverage detected