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

Function MapStyleFromSettings

libs/indexer/map_style.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5MapStyle const kDefaultMapStyle = MapStyleDefaultLight;
6
7MapStyle MapStyleFromSettings(std::string const & str)
8{
9 // MapStyleMerged is service style. It's unavailable for users.
10 if (str == "MapStyleDefaultLight")
11 return MapStyleDefaultLight;
12 else if (str == "MapStyleDefaultDark")
13 return MapStyleDefaultDark;
14 else if (str == "MapStyleVehicleLight")
15 return MapStyleVehicleLight;
16 else if (str == "MapStyleVehicleDark")
17 return MapStyleVehicleDark;
18 else if (str == "MapStyleOutdoorsLight")
19 return MapStyleOutdoorsLight;
20 else if (str == "MapStyleOutdoorsDark")
21 return MapStyleOutdoorsDark;
22
23 return kDefaultMapStyle;
24}
25
26std::string MapStyleToString(MapStyle mapStyle)
27{

Callers 1

FrameworkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected