diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-09-11 12:41:49 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:04:22 +0300 |
commit | ae5d557becae217f3c1ef35116928d9785d69be7 (patch) | |
tree | b09783468f798609da81dbfbdde0879d187196a5 | |
parent | aef75ebb1df691823a585dfd8172157cd5ddf8a4 (diff) |
Start navigation from 18 zoom level
-rw-r--r-- | indexer/scales.hpp | 2 | ||||
-rw-r--r-- | map/framework.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
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); |