diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-06-23 16:53:56 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:18:22 +0300 |
commit | d7dd7600354ab12b16ac8441085d98f8f5572a4c (patch) | |
tree | d69b5f760b7d6cf619710d2d940f1ceb063790a3 /map/user_mark.hpp | |
parent | 9f1ce5eafb3f10c338ee479647327b87ee612962 (diff) |
[core] separate user mark for MyPosition
Diffstat (limited to 'map/user_mark.hpp')
-rw-r--r-- | map/user_mark.hpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/map/user_mark.hpp b/map/user_mark.hpp index 9e59cf244a..fb0b55cb51 100644 --- a/map/user_mark.hpp +++ b/map/user_mark.hpp @@ -26,7 +26,8 @@ public: API, SEARCH, POI, - BOOKMARK + BOOKMARK, + MY_POSITION }; UserMark(m2::PointD const & ptOrg, UserMarkContainer * container); @@ -147,6 +148,16 @@ public: void SetName(string const & name) { m_info.m_name = name; } }; +class MyPositionMarkPoint : public PoiMarkPoint +{ + typedef PoiMarkPoint base_t; +public: + MyPositionMarkPoint(UserMarkContainer * container) + : base_t(container) {} + + UserMark::Type GetMarkType() const { return MY_POSITION; } +}; + class ICustomDrawable : public UserMark { public: |