From ae5d557becae217f3c1ef35116928d9785d69be7 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Fri, 11 Sep 2015 12:41:49 +0300 Subject: [PATCH] Start navigation from 18 zoom level --- indexer/scales.hpp | 2 ++ map/framework.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indexer/scales.hpp b/indexer/scales.hpp index 9fdebd8740..d9bd82a0b7 100644 --- a/indexer/scales.hpp +++ b/indexer/scales.hpp @@ -18,6 +18,8 @@ namespace scales inline int GetUpperComfortScale() { return UPPER_STYLE_SCALE - 2; } /// Default navigation mode scale inline int GetNavigationScale() { return UPPER_STYLE_SCALE - 4; } + /// Default pedestrian navigation mode scale + inline int GetPedestrianNavigationScale() { return UPPER_STYLE_SCALE - 1; } double GetScaleLevelD(double ratio); double GetScaleLevelD(m2::RectD const & r); diff --git a/map/framework.cpp b/map/framework.cpp index 7575d2314d..426416a02c 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -2217,7 +2217,7 @@ void Framework::RemoveRoute() void Framework::FollowRoute() { int const scale = (m_currentRouterType == RouterType::Pedestrian) ? - scales::GetUpperComfortScale() : + scales::GetPedestrianNavigationScale() : scales::GetNavigationScale(); GetLocationState()->StartRouteFollow(scale);