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

Function IsScaleAllowableIn3d

libs/drape_frontend/screen_operations.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17{
18
19bool IsScaleAllowableIn3d(int scale)
20{
21 int minScale = scales::GetMinAllowableIn3dScale();
22 if (df::VisualParams::Instance().GetVisualScale() <= 1.0)
23 --minScale;
24 if (GetPlatform().IsTablet())
25 ++minScale;
26 return scale >= minScale;
27}
28
29double CalculateScale(m2::RectD const & pixelRect, m2::RectD const & localRect)
30{

Callers 1

CheckIsometryMinScaleMethod · 0.85

Calls 3

GetMinAllowableIn3dScaleFunction · 0.85
GetVisualScaleMethod · 0.80
IsTabletMethod · 0.80

Tested by

no test coverage detected