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

Function GetStyleRulesSuffix

libs/indexer/map_style_reader.cpp:27–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#endif // BUILD_DESIGNER
26
27std::string GetStyleRulesSuffix(MapStyle mapStyle)
28{
29#ifdef BUILD_DESIGNER
30 return "_" + kSuffixDesignTool;
31#else
32 switch (mapStyle)
33 {
34 case MapStyleDefaultDark: return kSuffixDefaultDark;
35 case MapStyleDefaultLight: return kSuffixDefaultLight;
36 case MapStyleVehicleDark: return kSuffixVehicleDark;
37 case MapStyleVehicleLight: return kSuffixVehicleLight;
38 case MapStyleOutdoorsLight: return kSuffixOutdoorsLight;
39 case MapStyleOutdoorsDark: return kSuffixOutdoorsDark;
40 case MapStyleMerged: return {};
41
42 case MapStyleCount: break;
43 }
44 LOG(LWARNING, ("Unknown map style", mapStyle));
45 return kSuffixDefaultLight;
46#endif // BUILD_DESIGNER
47}
48
49std::string GetStyleResourcesSuffix(MapStyle mapStyle)
50{

Callers 1

GetDrawingRulesReaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected