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

Method ShowNode

android/sdk/src/main/cpp/app/organicmaps/sdk/Framework.cpp:484–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void Framework::ShowNode(CountryId const & idx, bool zoomToDownloadButton)
485{
486 if (zoomToDownloadButton)
487 {
488 m2::RectD const rect = CalcLimitRect(idx, m_work.GetStorage(), m_work.GetCountryInfoGetter());
489 m_work.SetViewportCenter(rect.Center(), 10);
490 }
491 else
492 {
493 m_work.ShowNode(idx);
494 }
495}
496
497void Framework::Scale(double factor, m2::PointD const & pxPoint, bool isAnim)
498{

Calls 3

CalcLimitRectFunction · 0.85
SetViewportCenterMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected