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

Method ShowFeature

libs/map/framework.cpp:949–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949void Framework::ShowFeature(FeatureID const & featureId)
950{
951 StopLocationFollow();
952
953 place_page::BuildInfo info;
954 info.m_featureId = featureId;
955 info.m_match = place_page::BuildInfo::Match::FeatureOnly;
956 m_currentPlacePageInfo = BuildPlacePageInfo(info);
957
958 if (m_drapeEngine != nullptr)
959 {
960 auto const & pt = m_currentPlacePageInfo->GetMercator();
961 auto const scale = scales::GetUpperComfortScale();
962 m_drapeEngine->SetModelViewCenter(pt, scale, true /* isAnim */, true /* trackVisibleViewport */);
963 }
964 ActivateMapSelection();
965}
966
967void Framework::AddBookmarksFile(string const & filePath, bool isTemporaryFile)
968{

Calls 2

GetUpperComfortScaleFunction · 0.85
SetModelViewCenterMethod · 0.80

Tested by

no test coverage detected