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>2014-05-21 11:09:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:15:42 +0300
commit2491f9d4d2117dc70cf8327144d4af98e5a965e1 (patch)
tree17ce3979dc91f4d976bef16bff2c61a5a8578153 /map/bookmark.cpp
parent6d5cc8dd486aad6f8d1dc2999860fd17689bcc79 (diff)
[core] we need apply pixel offset for bookmarks, to bookmark look like it growing from selection center
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r--map/bookmark.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp
index 4bf12a38e8..990cb177d7 100644
--- a/map/bookmark.cpp
+++ b/map/bookmark.cpp
@@ -36,6 +36,12 @@ double Bookmark::GetAnimScaleFactor() const
return m_animScaleFactor;
}
+m2::PointD const & Bookmark::GetPixelOffset() const
+{
+ static m2::PointD s_offset(0.0, 3.0);
+ return s_offset;
+}
+
shared_ptr<anim::Task> Bookmark::CreateAnimTask(Framework & fm)
{
m_animScaleFactor = 0.0;