MCPcopy Create free account
hub / github.com/comaps/comaps / ClearRoute

Method ClearRoute

qt/draw_widget.cpp:632–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void DrawWidget::ClearRoute()
633{
634 auto & routingManager = m_framework.GetRoutingManager();
635
636 bool const wasActive = routingManager.IsRoutingActive() && routingManager.IsRoutingFollowing();
637 routingManager.CloseRouting(true /* remove route points */);
638
639 if (wasActive)
640 SetMapStyleToDefault();
641
642 m_turnsVisualizer.ClearTurns(m_framework.GetDrapeApi());
643}
644
645void DrawWidget::OnRouteRecommendation(RoutingManager::Recommendation recommendation)
646{

Callers 1

OnClearRouteMethod · 0.80

Calls 4

IsRoutingActiveMethod · 0.80
IsRoutingFollowingMethod · 0.80
CloseRoutingMethod · 0.80
ClearTurnsMethod · 0.80

Tested by

no test coverage detected