Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-09-11 11:43:20 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:04:21 +0300
commit8afbffcd261f5e3542a98adf9bce4e8c98830669 (patch)
tree5325957d0c271caf4a7e2513bb01bfe1e5c974d0 /indexer/map_style_reader.cpp
parentdeb0adf30751278a6b828665f9bb54aeb1e64048 (diff)
Use yellow style by default
Diffstat (limited to 'indexer/map_style_reader.cpp')
-rw-r--r--indexer/map_style_reader.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/indexer/map_style_reader.cpp b/indexer/map_style_reader.cpp
index 72b3e485d5..bb5a570834 100644
--- a/indexer/map_style_reader.cpp
+++ b/indexer/map_style_reader.cpp
@@ -12,22 +12,25 @@
namespace
{
-char const * const MAP_STYLE_KEY = "MapStyleKey";
+char const * const MAP_STYLE_KEY = "MapStyleKeyV1";
+
+const char * const SUFFIX_LEGACY_LIGHT = "";
+const char * const SUFFIX_LEGACY_DARK = "_dark";
+const char * const SUFFIX_MODERN_CLEAR = "_clear";
string GetStyleSuffix(MapStyle mapStyle)
{
switch (mapStyle)
{
case MapStyleLight:
- return "";
+ return SUFFIX_LEGACY_LIGHT;
case MapStyleDark:
- return "_dark";
+ return SUFFIX_LEGACY_DARK;
case MapStyleClear:
- return "_clear";
- default:
- LOG(LWARNING, ("Unknown map style", mapStyle));
- return string();
+ return SUFFIX_MODERN_CLEAR;
}
+ LOG(LWARNING, ("Unknown map style", mapStyle));
+ return SUFFIX_MODERN_CLEAR;
}
} // namespace
@@ -41,7 +44,7 @@ MapStyle StyleReader::GetCurrentStyle()
{
int mapStyle;
if (!Settings::Get(MAP_STYLE_KEY, mapStyle))
- mapStyle = MapStyleLight;
+ mapStyle = MapStyleClear;
return static_cast<MapStyle>(mapStyle);
}