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

Method MarkMapStyle

libs/map/framework.cpp:1794–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794void Framework::MarkMapStyle(MapStyle mapStyle)
1795{
1796 ASSERT_NOT_EQUAL(mapStyle, MapStyle::MapStyleMerged, ());
1797
1798 // Store current map style before classificator reloading
1799 string mapStyleStr = MapStyleToString(mapStyle);
1800 if (mapStyleStr.empty())
1801 {
1802 mapStyle = kDefaultMapStyle;
1803 mapStyleStr = MapStyleToString(mapStyle);
1804 }
1805 settings::Set(kMapStyleKey, mapStyleStr);
1806 GetStyleReader().SetCurrentStyle(mapStyle);
1807}
1808
1809void Framework::SetMapStyle(MapStyle mapStyle)
1810{

Callers 1

PrepareShutdownMethod · 0.45

Calls 4

MapStyleToStringFunction · 0.85
SetCurrentStyleMethod · 0.80
SetFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected