diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-08-21 18:15:38 +0200 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2019-08-29 14:51:24 +0200 |
commit | e5c219d0356d45a5339c027297e441fd6cb96c05 (patch) | |
tree | 01eae9f8cc3e7293879a94a3fd04aab71b646da8 /include | |
parent | 6a4e431dbef4c036b5b27b9972caea70bfc269fb (diff) | |
download | qtlocation-mapboxgl-e5c219d0356d45a5339c027297e441fd6cb96c05.tar.gz |
[core] make padding optional when camera position is requested.
When padding is not provided, the current one that's cached in the TransformState is going to be returned.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index b1d4b14e4f..ac0a398d25 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -60,7 +60,7 @@ public: bool isPanning() const; // Camera - CameraOptions getCameraOptions(const EdgeInsets& = {}) const; + CameraOptions getCameraOptions(optional<EdgeInsets> = {}) const; void jumpTo(const CameraOptions&); void easeTo(const CameraOptions&, const AnimationOptions&); void flyTo(const CameraOptions&, const AnimationOptions&); |