mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Revert "[core][drape] Making arrows smooth again"
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -311,7 +311,6 @@ RoutingManager::RoutingManager(Callbacks && callbacks, Delegate & delegate)
|
|||||||
, m_delegate(delegate)
|
, m_delegate(delegate)
|
||||||
, m_extrapolator([this](location::GpsInfo const & gpsInfo) { this->OnExtrapolatedLocationUpdate(gpsInfo); })
|
, m_extrapolator([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)
|
||||||
@@ -556,6 +555,10 @@ void RoutingManager::RemoveRoute(bool deactivateFollowing)
|
|||||||
if (deactivateFollowing)
|
if (deactivateFollowing)
|
||||||
{
|
{
|
||||||
m_transitReadManager->BlockTransitSchemeMode(false /* isBlocked */);
|
m_transitReadManager->BlockTransitSchemeMode(false /* 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);
|
||||||
|
|
||||||
// Remove all subroutes.
|
// Remove all subroutes.
|
||||||
m_drapeEngine.SafeCall(&df::DrapeEngine::RemoveSubroute, dp::DrapeID(), true /* deactivateFollowing */);
|
m_drapeEngine.SafeCall(&df::DrapeEngine::RemoveSubroute, dp::DrapeID(), true /* deactivateFollowing */);
|
||||||
}
|
}
|
||||||
@@ -766,6 +769,7 @@ void RoutingManager::FollowRoute()
|
|||||||
|
|
||||||
void RoutingManager::CloseRouting(bool removeRoutePoints)
|
void RoutingManager::CloseRouting(bool removeRoutePoints)
|
||||||
{
|
{
|
||||||
|
m_extrapolator.Enable(false);
|
||||||
// Hide preview.
|
// Hide preview.
|
||||||
HidePreviewSegments();
|
HidePreviewSegments();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user