summaryrefslogtreecommitdiff
path: root/src/mbgl/map/transform_state.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/transform_state.hpp')
-rw-r--r--src/mbgl/map/transform_state.hpp4
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);