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
path: root/map
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-07-20 13:30:41 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-07-20 13:30:41 +0300
commitd068ba8e2b9ce09b4742e04bce764b1ec2bf90e3 (patch)
tree1675ec6bcf42b8ed378d65c54b1b64acaeb0f269 /map
parent0c9f7e91dffc93daf3859bfd10456fc0b2e4797c (diff)
Autozoom is enabled by default. Autozoom parameters are tuned.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 812761b6c2..5ec8d764b0 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2272,11 +2272,13 @@ void Framework::FollowRoute()
return;
bool const isPedestrianRoute = m_currentRouterType == RouterType::Pedestrian;
+ bool const enableAutoZoom = isPedestrianRoute ? false : LoadAutoZoom();
int const scale = isPedestrianRoute ? scales::GetPedestrianNavigationScale()
: scales::GetNavigationScale();
- int const scale3d = isPedestrianRoute ? scales::GetPedestrianNavigation3dScale()
- : scales::GetNavigation3dScale();
- bool const enableAutoZoom = isPedestrianRoute ? false : LoadAutoZoom();
+ int scale3d = isPedestrianRoute ? scales::GetPedestrianNavigation3dScale()
+ : scales::GetNavigation3dScale();
+ if (enableAutoZoom)
+ ++scale3d;
m_drapeEngine->FollowRoute(scale, scale3d, enableAutoZoom);
m_drapeEngine->SetRoutePoint(m2::PointD(), true /* isStart */, false /* isValid */);
@@ -2541,7 +2543,7 @@ void Framework::Load3dMode(bool & allow3d, bool & allow3dBuildings)
bool Framework::LoadAutoZoom()
{
- bool allowAutoZoom = false;
+ bool allowAutoZoom = true;
settings::Get(kAllowAutoZoom, allowAutoZoom);
return allowAutoZoom;
}