Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)

To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
This commit is contained in:
Konstantin Pastbin
2025-04-13 16:37:30 +07:00
commit e3e4a1985a
12931 changed files with 13195100 additions and 0 deletions

33
drape_frontend/tile_utils.hpp Executable file
View File

@@ -0,0 +1,33 @@
#pragma once
#include "drape_frontend/tile_key.hpp"
#include <functional>
#include <set>
namespace df
{
using TTilesCollection = std::set<TileKey>;
struct CoverageResult
{
int m_minTileX = 0;
int m_maxTileX = 0;
int m_minTileY = 0;
int m_maxTileY = 0;
};
// This function determines the tiles coverage in specified zoom level.
// Each tile can be processed in processTile callback.
CoverageResult CalcTilesCoverage(m2::RectD const & rect, int targetZoom,
std::function<void(int, int)> const & processTile);
// This function checks if tileKey1 and tileKey2 are neighbours
bool IsNeighbours(TileKey const & tileKey1, TileKey const & tileKey2);
// This function performs clipping by maximum zoom label available for map data.
int ClipTileZoomByMaxDataZoom(int zoom);
// This function returns tile key by point on specific zoom level.
TileKey GetTileKeyByPoint(m2::PointD const & pt, int zoom);
} // namespace df