| 905 | } |
| 906 | |
| 907 | void Framework::ShowTrack(kml::TrackId trackId) |
| 908 | { |
| 909 | auto & bm = GetBookmarkManager(); |
| 910 | auto const track = bm.GetTrack(trackId); |
| 911 | |
| 912 | StopLocationFollow(); |
| 913 | |
| 914 | auto rect = track->GetLimitRect(); |
| 915 | ExpandRectForPreview(rect); |
| 916 | |
| 917 | place_page::BuildInfo info; |
| 918 | info.m_trackId = trackId; |
| 919 | info.m_mercator = rect.Center(); |
| 920 | |
| 921 | m_currentPlacePageInfo = BuildPlacePageInfo(info); |
| 922 | |
| 923 | auto es = bm.GetEditSession(); |
| 924 | es.SetIsVisible(track->GetGroupId(), true /* visible */); |
| 925 | |
| 926 | if (m_drapeEngine) |
| 927 | m_drapeEngine->SetModelViewRect(rect, true, scales::GetScaleLevel(rect), true /* isAnim */, |
| 928 | true /* trackVisibleViewport */); |
| 929 | |
| 930 | ActivateMapSelection(); |
| 931 | } |
| 932 | |
| 933 | void Framework::ShowBookmarkCategory(kml::MarkGroupId categoryId, bool animation) |
| 934 | { |
no test coverage detected