| 614 | } |
| 615 | |
| 616 | void DrawWidget::FollowRoute() |
| 617 | { |
| 618 | auto & routingManager = m_framework.GetRoutingManager(); |
| 619 | |
| 620 | auto const points = routingManager.GetRoutePoints(); |
| 621 | if (points.size() < 2) |
| 622 | return; |
| 623 | if (!points.front().m_isMyPosition && !points.back().m_isMyPosition) |
| 624 | return; |
| 625 | if (routingManager.IsRoutingActive() && !routingManager.IsRoutingFollowing()) |
| 626 | { |
| 627 | routingManager.FollowRoute(); |
| 628 | SetMapStyleToVehicle(); |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | void DrawWidget::ClearRoute() |
| 633 | { |
no test coverage detected