| 630 | } |
| 631 | |
| 632 | void 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 | |
| 645 | void DrawWidget::OnRouteRecommendation(RoutingManager::Recommendation recommendation) |
| 646 | { |
no test coverage detected