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

Function GetStyleResourcesSuffix

libs/indexer/map_style_reader.cpp:49–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49std::string GetStyleResourcesSuffix(MapStyle mapStyle)
50{
51#ifdef BUILD_DESIGNER
52 return kSuffixDesignTool;
53#else
54 // We use the same resources for all light/day and dark/night styles
55 // to avoid textures duplication and package size increasing.
56 switch (mapStyle)
57 {
58 case MapStyleDefaultDark:
59 case MapStyleVehicleDark:
60 case MapStyleOutdoorsDark: return kSuffixDark;
61 case MapStyleDefaultLight:
62 case MapStyleVehicleLight:
63 case MapStyleOutdoorsLight: return kSuffixLight;
64 case MapStyleMerged: return {};
65
66 case MapStyleCount: break;
67 }
68 LOG(LWARNING, ("Unknown map style", mapStyle));
69 return kSuffixLight;
70#endif // BUILD_DESIGNER
71}
72} // namespace
73
74StyleReader::StyleReader() : m_mapStyle(kDefaultMapStyle) {}

Callers 1

GetResourceReaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected