From 49593bb09b13517cd29b1207fbbbfc0941342bc0 Mon Sep 17 00:00:00 2001 From: "S. Kozyr" Date: Fri, 18 Aug 2023 13:09:27 +0300 Subject: [PATCH] Removed annoying zoom in route planning mode Signed-off-by: S. Kozyr --- map/routing_manager.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index 89c1335141..fd1fd4f467 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -999,11 +999,14 @@ void RoutingManager::BuildRoute(uint32_t timeoutSec) if (IsRoutingActive()) CloseRouting(false /* remove route points */); - // Show preview. - m2::RectD rect = ShowPreviewSegments(routePoints); - rect.Scale(kRouteScaleMultiplier); - m_drapeEngine.SafeCall(&df::DrapeEngine::SetModelViewRect, rect, true /* applyRotation */, - -1 /* zoom */, true /* isAnim */, true /* useVisibleViewport */); + // Route points preview. + // Disabled preview zoom to fix https://github.com/organicmaps/organicmaps/issues/5409. + // Uncomment next lines to enable back zoom on route point add/remove. + + //m2::RectD rect = ShowPreviewSegments(routePoints); + //rect.Scale(kRouteScaleMultiplier); + //m_drapeEngine.SafeCall(&df::DrapeEngine::SetModelViewRect, rect, true /* applyRotation */, + // -1 /* zoom */, true /* isAnim */, true /* useVisibleViewport */); m_routingSession.ClearPositionAccumulator(); m_routingSession.SetUserCurrentPosition(routePoints.front().m_position);