| 42 | } |
| 43 | |
| 44 | TileKey GetTileKeyByPoint(m2::PointD const & pt, int zoom) |
| 45 | { |
| 46 | ASSERT_GREATER(zoom, 0, ()); |
| 47 | double const rectSize = mercator::Bounds::kRangeX / (1 << (zoom - 1)); |
| 48 | return TileKey(static_cast<int>(floor(pt.x / rectSize)), static_cast<int>(floor(pt.y / rectSize)), zoom); |
| 49 | } |
| 50 | } // namespace df |
no test coverage detected