diff options
author | Anatoliy Tomilov <tomilovanatoliy@gmail.com> | 2020-09-16 15:02:21 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2020-10-21 17:29:58 +0300 |
commit | 3685ce8617ad06d529e5da10092c70c0966ea966 (patch) | |
tree | 8aab63ff218e231750501b49e143c4619353a6c3 /drape_frontend/user_mark_shapes.cpp | |
parent | bc5ff4a95b2e5e2921d13887a85096aa4143b415 (diff) |
[drape] [tracks] Allow to render tracks for 20 zoomLevel MAPSME-12900
Diffstat (limited to 'drape_frontend/user_mark_shapes.cpp')
-rw-r--r-- | drape_frontend/user_mark_shapes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp index 722080f55d..ffe787a802 100644 --- a/drape_frontend/user_mark_shapes.cpp +++ b/drape_frontend/user_mark_shapes.cpp @@ -29,8 +29,8 @@ namespace df { std::vector<double> const kLineWidthZoomFactor = { -// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 - 0.3, 0.3, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7, 0.7, 0.7, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 +// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + 0.3, 0.3, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7, 0.7, 0.7, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 }; int const kLineSimplifyLevelEnd = 15; @@ -606,7 +606,7 @@ void CacheUserLines(ref_ptr<dp::GraphicsContext> context, TileKey const & tileKe UserLinesRenderCollection & renderParams, dp::Batcher & batcher) { CHECK_GREATER(tileKey.m_zoomLevel, 0, ()); - CHECK_LESS_OR_EQUAL(tileKey.m_zoomLevel, scales::GetUpperStyleScale(), ()); + CHECK_LESS(tileKey.m_zoomLevel - 1, static_cast<int>(kLineWidthZoomFactor.size()), ()); auto const vs = static_cast<float>(df::VisualParams::Instance().GetVisualScale()); bool const simplify = tileKey.m_zoomLevel <= kLineSimplifyLevelEnd; |