From fdf6bb3e34859ac042e125b6ed48580e3e2a32c1 Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Tue, 18 Feb 2020 17:28:29 +0200 Subject: [core] Add min and max pitch options --- include/mbgl/map/bound_options.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/mbgl/map') 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 bounds; @@ -25,6 +35,12 @@ struct BoundOptions { /// Minimum zoom level allowed. optional minZoom; + + /// Maximum pitch allowed. + optional maxPitch; + + /// Minimum pitch allowed. + optional minPitch; }; } // namespace mbgl -- cgit v1.2.1