Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
a3178bfa45
Changed route zoom. Don't zoom if route has intermediate points
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2023-11-21 14:00:04 +02:00
2888a41ddf
Disabled zoom after route is built
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2023-11-21 11:53:07 +02:00

View file

@ -412,7 +412,7 @@ void RoutingManager::OnBuildRouteReady(Route const & route, RouterResultCode cod
// Validate route (in case of bicycle routing it can be invalid).
ASSERT(route.IsValid(), ());
if (route.IsValid() && m_currentRouterType != routing::RouterType::Ruler)
if (route.IsValid() && m_currentRouterType != routing::RouterType::Ruler && route.GetSubrouteCount() == 1)
{
m2::RectD routeRect = route.GetPoly().GetLimitRect();
routeRect.Scale(kRouteScaleMultiplier);