diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-30 16:25:12 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-11 12:51:09 +0300 |
commit | c1c6c1e298521c177b64665b823d1444ce5e2cfe (patch) | |
tree | c5decfae633986d01579e731be2a78ec04d72542 /src/mbgl/map/transform_state.hpp | |
parent | bc7f6da1356fdfc22d8fa1d5f76821ab171647eb (diff) | |
download | qtlocation-mapboxgl-c1c6c1e298521c177b64665b823d1444ce5e2cfe.tar.gz |
[core] Added Map::{get,set}LatLngBounds
Diffstat (limited to 'src/mbgl/map/transform_state.hpp')
-rw-r--r-- | src/mbgl/map/transform_state.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/map/transform_state.hpp b/src/mbgl/map/transform_state.hpp index 4a0218e10e..b8baefdba1 100644 --- a/src/mbgl/map/transform_state.hpp +++ b/src/mbgl/map/transform_state.hpp @@ -51,6 +51,8 @@ public: double getZoomFraction() const; // Bounds + void setLatLngBounds(const LatLngBounds&); + LatLngBounds getLatLngBounds() const; void setMinZoom(double); double getMinZoom() const; void setMaxZoom(double); @@ -84,6 +86,8 @@ private: bool rotatedNorth() const; void constrain(double& scale, double& x, double& y) const; + LatLngBounds bounds = LatLngBounds::world(); + // Limit the amount of zooming possible on the map. double min_scale = std::pow(2, 0); double max_scale = std::pow(2, 20); |