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

Function GetNormalizedZoomLevel

libs/drape_frontend/visual_params.cpp:309–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309double GetNormalizedZoomLevel(double screenScale, int minZoom)
310{
311 double constexpr kMaxZoom = scales::GetUpperStyleScale() + 1.0;
312 return math::Clamp((GetZoomLevel(screenScale) - minZoom) / (kMaxZoom - minZoom), 0.0, 1.0);
313}
314
315double GetScreenScale(double zoomLevel)
316{

Callers 2

CalculateTransformMethod · 0.85
CalculateKineticMaxSpeedFunction · 0.85

Calls 3

GetUpperStyleScaleFunction · 0.85
ClampFunction · 0.85
GetZoomLevelFunction · 0.70

Tested by

no test coverage detected