summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-02-18 17:28:29 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-02-25 16:54:44 +0200
commitfdf6bb3e34859ac042e125b6ed48580e3e2a32c1 (patch)
tree55709bc7cefed0a293d006f1c453df71633d8b71 /include
parentf105100943478eee209c7044c3054fc158bef0a6 (diff)
downloadqtlocation-mapboxgl-fdf6bb3e34859ac042e125b6ed48580e3e2a32c1.tar.gz
[core] Add min and max pitch options
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/bound_options.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbgl/map/bound_options.hpp b/include/mbgl/map/bound_options.hpp
index 69d353a301..614a532339 100644
--- a/include/mbgl/map/bound_options.hpp
+++ b/include/mbgl/map/bound_options.hpp
@@ -16,6 +16,16 @@ struct BoundOptions {
BoundOptions& withMinZoom(double z) { minZoom = z; return *this; }
/// Sets the maximum zoom level
BoundOptions& withMaxZoom(double z) { maxZoom = z; return *this; }
+ /// Sets the minimum pitch
+ BoundOptions& withMinPitch(double p) {
+ minPitch = p;
+ return *this;
+ }
+ /// Sets the maximum pitch
+ BoundOptions& withMaxPitch(double p) {
+ maxPitch = p;
+ return *this;
+ }
/// Constrain the center of the camera to be within these bounds.
optional<LatLngBounds> bounds;
@@ -25,6 +35,12 @@ struct BoundOptions {
/// Minimum zoom level allowed.
optional<double> minZoom;
+
+ /// Maximum pitch allowed.
+ optional<double> maxPitch;
+
+ /// Minimum pitch allowed.
+ optional<double> minPitch;
};
} // namespace mbgl