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

Method SaveViewport

libs/map/framework.cpp:977–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977void Framework::SaveViewport()
978{
979 if (m_routingManager.IsRoutingActive())
980 return;
981
982 m2::AnyRectD rect;
983 if (m_currentModelView.isPerspective())
984 {
985 ScreenBase modelView = m_currentModelView;
986 modelView.ResetPerspective();
987 rect = modelView.GlobalRect();
988 }
989 else
990 {
991 rect = m_currentModelView.GlobalRect();
992 }
993 settings::Set(kScreenViewport, rect);
994}
995
996void Framework::LoadViewport()
997{

Callers

nothing calls this directly

Calls 4

IsRoutingActiveMethod · 0.80
isPerspectiveMethod · 0.80
ResetPerspectiveMethod · 0.80
SetFunction · 0.50

Tested by

no test coverage detected