diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2015-11-25 17:52:35 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2015-12-29 16:36:09 +0300 |
commit | 1d08ec2bd34ed6baa1938076067aca26e1e16bb3 (patch) | |
tree | acd9f502ed65b0bd3616e493d681125be4a96d9b /drape_frontend/frontend_renderer.hpp | |
parent | c2db00a999539d7605427885151ae21680d4c25b (diff) |
Refactor switch from perspective when zoom level is too low.
Conflicts:
drape_frontend/frontend_renderer.hpp
Diffstat (limited to 'drape_frontend/frontend_renderer.hpp')
-rwxr-xr-x | drape_frontend/frontend_renderer.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drape_frontend/frontend_renderer.hpp b/drape_frontend/frontend_renderer.hpp index 849a232ab2..de39a234c7 100755 --- a/drape_frontend/frontend_renderer.hpp +++ b/drape_frontend/frontend_renderer.hpp @@ -153,6 +153,10 @@ private: int GetCurrentZoomLevelForData() const; void ResolveZoomLevel(ScreenBase const & screen); + void DiscardPerspective(ScreenBase const & screen); + void DiscardPerspective(); + void RecoverPerspective(); + void OnTap(m2::PointD const & pt, bool isLong) override; void OnForceTap(m2::PointD const & pt) override; void OnDoubleTap(m2::PointD const & pt) override; @@ -240,8 +244,8 @@ private: unique_ptr<TileTree> m_tileTree; int m_currentZoomLevel = -1; int m_min3dZoomLevel = 17; - double m_discardedFOV = -1.0; - double m_discardedAngle = -1.0; + double m_discardedFOV = 0.0; + double m_discardedAngle = 0.0; ref_ptr<RequestedTiles> m_requestedTiles; uint64_t m_maxGeneration; |