| 802 | } |
| 803 | |
| 804 | void Framework::FillMyPositionInfo(place_page::Info & info, place_page::BuildInfo const & buildInfo) const |
| 805 | { |
| 806 | auto const position = GetCurrentPosition(); |
| 807 | CHECK(position, ()); |
| 808 | info.SetMercator(*position); |
| 809 | info.SetCustomName(m_stringsBundle.GetString("core_my_position")); |
| 810 | |
| 811 | UserMark const * mark = FindUserMarkInTapPosition(buildInfo); |
| 812 | if (mark != nullptr && mark->GetMarkType() == UserMark::Type::ROUTING) |
| 813 | { |
| 814 | auto routingMark = static_cast<RouteMarkPoint const *>(mark); |
| 815 | info.SetIsRoutePoint(); |
| 816 | info.SetRouteMarkType(routingMark->GetRoutePointType()); |
| 817 | info.SetIntermediateIndex(routingMark->GetIntermediateIndex()); |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | void Framework::FillRouteMarkInfo(RouteMarkPoint const & rmp, place_page::Info & info) const |
| 822 | { |
nothing calls this directly
no test coverage detected