From dee1fe5294b910f2298889e5fea84b965eeb522f Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 25 Nov 2014 15:33:34 -1000 Subject: [PATCH] Changed default navigation zoom level to 15 for more comfortable car usage --- indexer/scales.hpp | 2 ++ map/location_state.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indexer/scales.hpp b/indexer/scales.hpp index 6b6e656836..ad182af475 100644 --- a/indexer/scales.hpp +++ b/indexer/scales.hpp @@ -16,6 +16,8 @@ namespace scales inline int GetUpperWorldScale() { return 9; } /// Upper scale for user comfort view (e.g. location zoom). inline int GetUpperComfortScale() { return UPPER_STYLE_SCALE - 2; } + /// Default navigation mode scale + inline int GetNavigationScale() { return UPPER_STYLE_SCALE - 4; } double GetScaleLevelD(double ratio); double GetScaleLevelD(m2::RectD const & r); diff --git a/map/location_state.cpp b/map/location_state.cpp index dfe8186d5d..b50e49e259 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -366,7 +366,7 @@ void State::StartRouteFollow() m2::PointD const size(m_errorRadius, m_errorRadius); m_framework->ShowRectExVisibleScale(m2::RectD(m_position - size, m_position + size), - scales::GetUpperComfortScale()); + scales::GetNavigationScale()); SetModeInfo(ChangeMode(m_modeInfo, NotFollow)); SetModeInfo(ChangeMode(m_modeInfo, IsRotationActive() ? RotateAndFollow : Follow));