MCPcopy Create free account
hub / github.com/comaps/comaps / GetTileKeyByPoint

Function GetTileKeyByPoint

libs/drape_frontend/tile_utils.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44TileKey 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

Callers 4

RenderMethod · 0.85
RenderAccuracyMethod · 0.85
RenderMyPositionMethod · 0.85
UpdateIndexMethod · 0.85

Calls 1

TileKeyClass · 0.70

Tested by

no test coverage detected