diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2014-05-22 16:11:21 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2014-05-22 16:11:21 -0700 |
commit | 1ff173a0494bdc76bc4a262948b62dd114ef1d61 (patch) | |
tree | 063011885855f2793ece8d34cc65946689a22ea2 /include/llmr/map | |
parent | 12594ce8f1c69061f477c50604b21a3211e5dd72 (diff) | |
download | qtlocation-mapboxgl-1ff173a0494bdc76bc4a262948b62dd114ef1d61.tar.gz |
fixes #48: constrain min zoom/vertical pan to within world
Diffstat (limited to 'include/llmr/map')
-rw-r--r-- | include/llmr/map/transform.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llmr/map/transform.hpp b/include/llmr/map/transform.hpp index 550d14b146..4226ec7e40 100644 --- a/include/llmr/map/transform.hpp +++ b/include/llmr/map/transform.hpp @@ -68,6 +68,8 @@ private: void _clearRotating(); void _clearScaling(); + void constrain(double& scale, double& y); + private: mutable uv::rwlock mtx; |