diff options
author | vng <viktor.govako@gmail.com> | 2015-08-07 19:48:55 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:00:03 +0300 |
commit | 96fd81f9e05f09af3115ff1a0413f15839ca725b (patch) | |
tree | fd520d8b3f43e24648700472a379adda34642739 /map/location_state.cpp | |
parent | 6302ca385de26b612a350d3b6868314760bbaa70 (diff) |
[routing] Set initial scale to 15 for pedestrian routing.
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r-- | map/location_state.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp index e5d690fb9d..f56528fcf3 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -366,14 +366,13 @@ void State::RouteBuilded() } } -void State::StartRouteFollow() +void State::StartRouteFollow(int scale) { ASSERT(IsInRouting(), ()); ASSERT(IsModeHasPosition(), ()); m2::PointD const size(m_errorRadius, m_errorRadius); - m_framework->ShowRectExVisibleScale(m2::RectD(m_position - size, m_position + size), - scales::GetNavigationScale()); + m_framework->ShowRectExVisibleScale(m2::RectD(m_position - size, m_position + size), scale); SetModeInfo(ChangeMode(m_modeInfo, NotFollow)); SetModeInfo(ChangeMode(m_modeInfo, IsRotationActive() ? RotateAndFollow : Follow)); |