Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-08-07 19:48:55 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:00:03 +0300
commit96fd81f9e05f09af3115ff1a0413f15839ca725b (patch)
treefd520d8b3f43e24648700472a379adda34642739 /map/framework.cpp
parent6302ca385de26b612a350d3b6868314760bbaa70 (diff)
[routing] Set initial scale to 15 for pedestrian routing.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index caedf287ef..d00a2a45e2 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2226,6 +2226,15 @@ void Framework::RemoveRoute()
m_bmManager.ResetRouteTrack();
}
+void Framework::FollowRoute()
+{
+ int const scale = (m_currentRouterType == RouterType::Pedestrian) ?
+ scales::GetUpperComfortScale() :
+ scales::GetNavigationScale();
+
+ GetLocationState()->StartRouteFollow(scale);
+}
+
void Framework::CloseRouting()
{
ASSERT_THREAD_CHECKER(m_threadChecker, ("CloseRouting"));