| 958 | } |
| 959 | |
| 960 | void BookmarkManager::SetTrackSelectionMark(kml::TrackId trackId, m2::PointD const & pt, double distance) |
| 961 | { |
| 962 | auto const markId = GetTrackSelectionMarkId(trackId); |
| 963 | |
| 964 | TrackSelectionMark * trackSelectionMark; |
| 965 | if (markId == kml::kInvalidMarkId) |
| 966 | { |
| 967 | trackSelectionMark = CreateUserMark<TrackSelectionMark>(pt); |
| 968 | trackSelectionMark->SetTrackId(trackId); |
| 969 | |
| 970 | if (m_drapeEngine) |
| 971 | trackSelectionMark->SetMinVisibleZoom(GetTrackSelectionMarkMinZoom(trackId)); |
| 972 | } |
| 973 | else |
| 974 | { |
| 975 | trackSelectionMark = GetMarkForEdit<TrackSelectionMark>(markId); |
| 976 | trackSelectionMark->SetPosition(pt); |
| 977 | } |
| 978 | trackSelectionMark->SetDistance(distance); |
| 979 | |
| 980 | auto const isVisible = IsVisible(GetTrack(trackId)->GetGroupId()); |
| 981 | trackSelectionMark->SetIsVisible(isVisible); |
| 982 | } |
| 983 | |
| 984 | void BookmarkManager::DeleteTrackSelectionMark(kml::TrackId trackId) |
| 985 | { |
nothing calls this directly
no test coverage detected