| 643 | } |
| 644 | |
| 645 | void DrawWidget::OnRouteRecommendation(RoutingManager::Recommendation recommendation) |
| 646 | { |
| 647 | if (recommendation == RoutingManager::Recommendation::RebuildAfterPointsLoading) |
| 648 | { |
| 649 | auto & routingManager = m_framework.GetRoutingManager(); |
| 650 | |
| 651 | RouteMarkData startPoint; |
| 652 | startPoint.m_pointType = RouteMarkType::Start; |
| 653 | startPoint.m_isMyPosition = true; |
| 654 | routingManager.AddRoutePoint(std::move(startPoint)); |
| 655 | |
| 656 | if (routingManager.GetRoutePoints().size() >= 2) |
| 657 | routingManager.BuildRoute(); |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | void DrawWidget::ShowPlacePage() |
| 662 | { |
nothing calls this directly
no test coverage detected