summaryrefslogtreecommitdiff
path: root/src/mbgl/map/transform.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-26 16:59:54 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-26 18:49:01 -0800
commit8a23bdcd0194ec86857ff4dd1201b98dfe49bb48 (patch)
tree4d54330e88f855d5c5be770f770182b77fd4a3b2 /src/mbgl/map/transform.hpp
parent97fc2120c43ed53d3baa4a55f7fe1bb72e36427d (diff)
downloadqtlocation-mapboxgl-8a23bdcd0194ec86857ff4dd1201b98dfe49bb48.tar.gz
[core, ios, osx] Tilt around visual center point
The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
Diffstat (limited to 'src/mbgl/map/transform.hpp')
-rw-r--r--src/mbgl/map/transform.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mbgl/map/transform.hpp b/src/mbgl/map/transform.hpp
index bef6c6c87e..8c9ea08885 100644
--- a/src/mbgl/map/transform.hpp
+++ b/src/mbgl/map/transform.hpp
@@ -102,7 +102,15 @@ public:
double getAngle() const;
// Pitch
+ /** Sets the pitch angle.
+ @param angle The new pitch angle, measured in radians toward the
+ horizon. */
void setPitch(double pitch, const Duration& = Duration::zero());
+ /** Sets the pitch angle, keeping the given point fixed within the view.
+ @param angle The new pitch angle, measured in radians toward the
+ horizon.
+ @param anchor A point relative to the top-left corner of the view. */
+ void setPitch(double pitch, const PrecisionPoint& anchor, const Duration& = Duration::zero());
double getPitch() const;
// North Orientation