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

Method ShowBookmarkCategory

libs/map/framework.cpp:933–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933void Framework::ShowBookmarkCategory(kml::MarkGroupId categoryId, bool animation)
934{
935 auto & bm = GetBookmarkManager();
936 auto rect = bm.GetCategoryRect(categoryId, true /* addIconsSize */);
937 if (!rect.IsValid())
938 return;
939
940 ExpandRectForPreview(rect);
941
942 StopLocationFollow();
943 ShowRect(rect, -1 /* maxScale */, animation);
944
945 auto es = bm.GetEditSession();
946 es.SetIsVisible(categoryId, true /* visible */);
947}
948
949void Framework::ShowFeature(FeatureID const & featureId)
950{

Calls 5

ExpandRectForPreviewFunction · 0.85
GetCategoryRectMethod · 0.80
GetEditSessionMethod · 0.80
IsValidMethod · 0.45
SetIsVisibleMethod · 0.45

Tested by

no test coverage detected