MapLibre Native Core
|
Holds options to limit what parts of a map are visible. All fields are optional. More...
#include <bound_options.hpp>
Public Member Functions | |
BoundOptions & | withLatLngBounds (LatLngBounds b) |
Sets the latitude and longitude bounds to which the camera center are constrained. More... | |
BoundOptions & | withMinZoom (double z) |
Sets the minimum zoom level. More... | |
BoundOptions & | withMaxZoom (double z) |
Sets the maximum zoom level. More... | |
BoundOptions & | withMinPitch (double p) |
Sets the minimum pitch. More... | |
BoundOptions & | withMaxPitch (double p) |
Sets the maximum pitch. More... | |
Public Attributes | |
std::optional< LatLngBounds > | bounds |
Constrain the center of the camera to be within these bounds. More... | |
std::optional< double > | maxZoom |
Maximum zoom level allowed. More... | |
std::optional< double > | minZoom |
Minimum zoom level allowed. More... | |
std::optional< double > | maxPitch |
Maximum pitch allowed in degrees. More... | |
std::optional< double > | minPitch |
Minimum pitch allowed in degrees. More... | |
Holds options to limit what parts of a map are visible. All fields are optional.
Definition at line 13 of file bound_options.hpp.
|
inline |
Sets the latitude and longitude bounds to which the camera center are constrained.
Definition at line 15 of file bound_options.hpp.
|
inline |
Sets the maximum pitch.
Definition at line 26 of file bound_options.hpp.
|
inline |
Sets the maximum zoom level.
Definition at line 19 of file bound_options.hpp.
|
inline |
Sets the minimum pitch.
Definition at line 21 of file bound_options.hpp.
|
inline |
Sets the minimum zoom level.
Definition at line 17 of file bound_options.hpp.
std::optional<LatLngBounds> mbgl::BoundOptions::bounds |
Constrain the center of the camera to be within these bounds.
Definition at line 32 of file bound_options.hpp.
std::optional<double> mbgl::BoundOptions::maxPitch |
Maximum pitch allowed in degrees.
Definition at line 41 of file bound_options.hpp.
std::optional<double> mbgl::BoundOptions::maxZoom |
Maximum zoom level allowed.
Definition at line 35 of file bound_options.hpp.
std::optional<double> mbgl::BoundOptions::minPitch |
Minimum pitch allowed in degrees.
Definition at line 44 of file bound_options.hpp.
std::optional<double> mbgl::BoundOptions::minZoom |
Minimum zoom level allowed.
Definition at line 38 of file bound_options.hpp.