diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-15 08:23:10 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-18 16:54:57 -0800 |
commit | 143f8a78170065fc46afba1eaf987258e9c9f99b (patch) | |
tree | 854e6e55b5d08b4c524afb30c7f4c6ff2d8d3821 /src/mbgl/map/transform.hpp | |
parent | cb126eafe0e9b482162414d0fbbc0ae4d4f3cea9 (diff) | |
download | qtlocation-mapboxgl-143f8a78170065fc46afba1eaf987258e9c9f99b.tar.gz |
[core] Added padding option to CameraOptions
Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters.
Working towards #2600.
Diffstat (limited to 'src/mbgl/map/transform.hpp')
-rw-r--r-- | src/mbgl/map/transform.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/map/transform.hpp b/src/mbgl/map/transform.hpp index 6be0558f98..77c03e939d 100644 --- a/src/mbgl/map/transform.hpp +++ b/src/mbgl/map/transform.hpp @@ -43,9 +43,10 @@ public: top to bottom and from left to right. */ void moveBy(const PrecisionPoint& offset, const Duration& = Duration::zero()); void setLatLng(const LatLng&, const Duration& = Duration::zero()); + void setLatLng(const LatLng&, const EdgeInsets&, const Duration& = Duration::zero()); void setLatLng(const LatLng&, const PrecisionPoint&, const Duration& = Duration::zero()); void setLatLngZoom(const LatLng&, double zoom, const Duration& = Duration::zero()); - LatLng getLatLng() const { return state.getLatLng(); } + LatLng getLatLng(const EdgeInsets& = {}) const; // Zoom |