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

Method GetTrackSelectionMarkMinZoom

libs/map/bookmark_manager.cpp:951–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951int BookmarkManager::GetTrackSelectionMarkMinZoom(kml::TrackId trackId) const
952{
953 auto track = GetTrack(trackId);
954 CHECK(track != nullptr, ());
955
956 auto const zoom = std::min(df::GetDrawTileScale(track->GetLimitRect()), 14);
957 return zoom;
958}
959
960void BookmarkManager::SetTrackSelectionMark(kml::TrackId trackId, m2::PointD const & pt, double distance)
961{

Callers

nothing calls this directly

Calls 2

GetDrawTileScaleFunction · 0.85
GetLimitRectMethod · 0.45

Tested by

no test coverage detected