forked from organicmaps/organicmaps
Disable traffic on starting of pedestrian or bicycle navigation.
This commit is contained in:
parent
3c7e2a6256
commit
46ff7a0b71
1 changed files with 7 additions and 0 deletions
|
@ -2406,6 +2406,13 @@ void Framework::FollowRoute()
|
|||
if (enableAutoZoom)
|
||||
++scale3d;
|
||||
|
||||
bool const isBicycleRoute = m_currentRouterType == RouterType::Bicycle;
|
||||
if ((isPedestrianRoute || isBicycleRoute) && LoadTrafficEnabled())
|
||||
{
|
||||
m_trafficManager.SetEnabled(false /* enabled */);
|
||||
SaveTrafficEnabled(false /* enabled */);
|
||||
}
|
||||
|
||||
m_drapeEngine->FollowRoute(scale, scale3d, enableAutoZoom);
|
||||
m_drapeEngine->SetRoutePoint(m2::PointD(), true /* isStart */, false /* isValid */);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue