[core][drape] Making arrows smooth again

Signed-off-by: Henry Sternberg <dev@bluelightmaps.com>
This commit is contained in:
Henry Sternberg
2024-07-05 16:22:04 +01:00
committed by Konstantin Pastbin
parent 2dade5039a
commit 78baadfe95

View File

@@ -315,6 +315,7 @@ RoutingManager::RoutingManager(Callbacks && callbacks, Delegate & delegate)
, m_extrapolator( , m_extrapolator(
[this](location::GpsInfo const & gpsInfo) { this->OnExtrapolatedLocationUpdate(gpsInfo); }) [this](location::GpsInfo const & gpsInfo) { this->OnExtrapolatedLocationUpdate(gpsInfo); })
{ {
m_extrapolator.Enable(true); // Keeps smooth arrow movement whether routing or not
m_routingSession.Init( m_routingSession.Init(
#ifdef SHOW_ROUTE_DEBUG_MARKS #ifdef SHOW_ROUTE_DEBUG_MARKS
[this](m2::PointD const & pt) { [this](m2::PointD const & pt) {
@@ -767,9 +768,6 @@ void RoutingManager::FollowRoute()
m_transitReadManager->BlockTransitSchemeMode(true /* isBlocked */); m_transitReadManager->BlockTransitSchemeMode(true /* isBlocked */);
// Switching on the extrapolator only for following mode in car and bicycle navigation.
m_extrapolator.Enable(m_currentRouterType == RouterType::Vehicle ||
m_currentRouterType == RouterType::Bicycle);
m_delegate.OnRouteFollow(m_currentRouterType); m_delegate.OnRouteFollow(m_currentRouterType);
m_bmManager->GetEditSession().ClearGroup(UserMark::Type::ROAD_WARNING); m_bmManager->GetEditSession().ClearGroup(UserMark::Type::ROAD_WARNING);
@@ -781,7 +779,6 @@ void RoutingManager::FollowRoute()
void RoutingManager::CloseRouting(bool removeRoutePoints) void RoutingManager::CloseRouting(bool removeRoutePoints)
{ {
m_extrapolator.Enable(false);
// Hide preview. // Hide preview.
HidePreviewSegments(); HidePreviewSegments();