summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-17 17:19:54 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-18 09:37:27 +0200
commitadfac6f0615b7f79da2c80d0580428a92e9f0089 (patch)
treeb6cac5234e13cdd5148efdbb8f3cd1e9c7ed349f /test/style
parentcb9b397985b98a75aa9fa5e6f2b135c205f7cafd (diff)
downloadqtlocation-mapboxgl-adfac6f0615b7f79da2c80d0580428a92e9f0089.tar.gz
[core] Added ConstrainMode::{HeightOnly,WidthAndHeight}
ConstrainMode gives flexibility to our engine to choose between constraining both vertically and horizontally, or just vertically (default behavior). Constrain in both axis means we can no longer pan the map beyond the map boundaries. This fixes an issue where e.g. annotations disappear upon crossing the map boundaries.
Diffstat (limited to 'test/style')
-rw-r--r--test/style/resource_loading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp
index c6f1c1dfae..cdc84e96b2 100644
--- a/test/style/resource_loading.cpp
+++ b/test/style/resource_loading.cpp
@@ -24,7 +24,7 @@ public:
FileSource& fileSource,
const std::function<void(std::exception_ptr error)>& callback)
: data_(MapMode::Still, GLContextMode::Unique, view.getPixelRatio()),
- transform_(view),
+ transform_(view, ConstrainMode::HeightOnly),
callback_(callback) {
util::ThreadContext::setFileSource(&fileSource);