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
path: root/map
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-09-15 17:25:21 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:05:26 +0300
commite31d7e6d0d80eff58af2d6021f8e52615469c9f8 (patch)
tree42873d55e24b397d6c04e59a1619c440189d4674 /map
parente3eb324988be9329cf487dca560179419e9fed7a (diff)
Collect statistics about style switching
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 5e79929ef7..539dacdb53 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -1617,6 +1617,9 @@ void Framework::SetMapStyle(MapStyle mapStyle)
{
GetStyleReader().SetCurrentStyle(mapStyle);
classificator::Load();
+
+ alohalytics::TStringMap details {{"mapStyle", strings::to_string(static_cast<int>(mapStyle))}};
+ alohalytics::Stats::Instance().LogEvent("MapStyle_Changed", details);
}
MapStyle Framework::GetMapStyle() const