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:
authorExMix <rahuba.youri@mapswithme.com>2015-05-21 13:02:42 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:07:46 +0300
commit5fde96bf58d2ed8f20f73232b756dae980a8147d (patch)
tree16c9948b8dd972a2f5335639795647c7e4d6c3a6 /platform/location.hpp
parentfa5be671cdf6c367cb60df6ceb974cdc548737f5 (diff)
[drape] my position controller
- gps, compass info messages - my position rendering fixes - remove useless code
Diffstat (limited to 'platform/location.hpp')
-rw-r--r--platform/location.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/location.hpp b/platform/location.hpp
index d57dbd083b..ba640a60cb 100644
--- a/platform/location.hpp
+++ b/platform/location.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include "geometry/point2d.hpp"
+
#include "base/base.hpp"
#include "geometry/latlon.hpp"
@@ -8,6 +10,7 @@
#include "routing/turns_sound_settings.hpp"
#include "std/cmath.hpp"
+#include "std/function.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
@@ -189,4 +192,17 @@ namespace location
size_t GetIndexInRoute() const { return m_indexInRoute; }
m2::PointD GetPosition() const { return m_matchedPosition; }
};
+
+ // Do not change the order and values
+ enum EMyPositionMode
+ {
+ MODE_UNKNOWN_POSITION = 0x0,
+ MODE_PENDING_POSITION = 0x1,
+ MODE_NOT_FOLLOW = 0x2,
+ MODE_FOLLOW = 0x3,
+ MODE_ROTATE_AND_FOLLOW = 0x4,
+ };
+
+ using TMyPositionModeChanged = function<void (location::EMyPositionMode)>;
+
} // namespace location