| 742 | } |
| 743 | |
| 744 | void RoutingManager::CreateTrafficLightMarks(vector<std::pair<m2::PointD, FeatureID>> && trafficLights) |
| 745 | { |
| 746 | ASSERT(!trafficLights.empty(), ()); |
| 747 | |
| 748 | GetPlatform().RunTask(Platform::Thread::Gui, [this, trafficLights = std::move(trafficLights)]() |
| 749 | { |
| 750 | auto es = m_bmManager->GetEditSession(); |
| 751 | for (auto const & item : trafficLights) |
| 752 | { |
| 753 | auto mark = es.CreateUserMark<TrafficLightMark>(item.first); |
| 754 | mark->SetFeatureId(item.second); |
| 755 | } |
| 756 | }); |
| 757 | } |
| 758 | |
| 759 | bool RoutingManager::InsertRoute(Route const & route) |
| 760 | { |
nothing calls this directly
no test coverage detected