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/location_state.cpp
parent6302ca385de26b612a350d3b6868314760bbaa70 (diff)
[routing] Set initial scale to 15 for pedestrian routing.
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r--map/location_state.cpp5
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));