diff options
author | Mikko Pulkki <mikko.pulkki@mapbox.com> | 2020-04-27 13:28:46 +0300 |
---|---|---|
committer | Mikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com> | 2020-05-02 17:07:02 +0300 |
commit | 83c06c1f99bf82fb1bc695b8b38fe1ea1dd91dde (patch) | |
tree | dbe6a4d917458b67787ad0b2d35e1bf23db062fb /include/mbgl/map/map.hpp | |
parent | 57b4b2829e8033d6cf3f7bd48c1fe511e00b830c (diff) | |
download | qtlocation-mapboxgl-83c06c1f99bf82fb1bc695b8b38fe1ea1dd91dde.tar.gz |
Add FreeCameraOptions to the Map class
Diffstat (limited to 'include/mbgl/map/map.hpp')
-rw-r--r-- | include/mbgl/map/map.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 9aa0cb165e..3c61140eb8 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -135,6 +135,14 @@ public: bool isFullyLoaded() const; void dumpDebugLogs() const; + // FreeCameraOptions provides more direct access to the underlying camera entity. + // For backwards compatibility the state set using this API must be representable with + // `CameraOptions` as well. Parameters are clamped to a valid range or discarded as invalid + // if the conversion to the pitch and bearing presentation is ambiguous. For example orientation + // can be invalid if it leads to the camera being upside down or the quaternion has zero length. + void setFreeCameraOptions(const FreeCameraOptions& camera); + FreeCameraOptions getFreeCameraOptions() const; + protected: class Impl; const std::unique_ptr<Impl> impl; |