diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-04-30 16:59:31 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-08 16:49:33 +0300 |
commit | 972b159b3e062319f06d00e419eba3fe9126b95d (patch) | |
tree | 866ae87ce42a313dd73fc14ae5dfe8fc893b3624 /map | |
parent | b84ebe53da4c18ad29978ab60450467c116b9898 (diff) |
[deeplink][android][ios] fix for search in list deep link.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 10 | ||||
-rw-r--r-- | map/framework.hpp | 3 |
2 files changed, 4 insertions, 9 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 2280c8e0c0..edf2a7cfa5 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1212,15 +1212,11 @@ m2::PointD const & Framework::GetViewportCenter() const return m_currentModelView.GetOrg(); } -void Framework::SetViewportCenter(m2::PointD const & pt) -{ - SetViewportCenter(pt, -1); -} - -void Framework::SetViewportCenter(m2::PointD const & pt, int zoomLevel) +void Framework::SetViewportCenter(m2::PointD const & pt, int zoomLevel /* = -1 */, + bool isAnim /* = true */) { if (m_drapeEngine != nullptr) - m_drapeEngine->SetModelViewCenter(pt, zoomLevel, true /* isAnim */, false /* trackVisibleViewport */); + m_drapeEngine->SetModelViewCenter(pt, zoomLevel, isAnim, false /* trackVisibleViewport */); } m2::RectD Framework::GetCurrentViewport() const diff --git a/map/framework.hpp b/map/framework.hpp index 0bbd5bbe33..4d8deeb750 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -629,8 +629,7 @@ public: m2::PointD GetVisiblePixelCenter() const; m2::PointD const & GetViewportCenter() const; - void SetViewportCenter(m2::PointD const & pt); - void SetViewportCenter(m2::PointD const & pt, int zoomLevel); + void SetViewportCenter(m2::PointD const & pt, int zoomLevel = -1, bool isAnim = true); m2::RectD GetCurrentViewport() const; void SetVisibleViewport(m2::RectD const & rect); |