summaryrefslogtreecommitdiff
path: root/include/mbgl/map/bound_options.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/map/bound_options.hpp')
-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