MCPcopy Create free account
hub / github.com/comaps/comaps / ShowTrack

Method ShowTrack

libs/map/framework.cpp:907–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907void 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
933void Framework::ShowBookmarkCategory(kml::MarkGroupId categoryId, bool animation)
934{

Calls 9

ExpandRectForPreviewFunction · 0.85
GetScaleLevelFunction · 0.85
GetTrackMethod · 0.80
GetEditSessionMethod · 0.80
SetModelViewRectMethod · 0.80
GetLimitRectMethod · 0.45
CenterMethod · 0.45
SetIsVisibleMethod · 0.45
GetGroupIdMethod · 0.45

Tested by

no test coverage detected