summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2016-01-26 18:50:37 -0800
committerAnsis Brammanis <brammanis@gmail.com>2016-01-28 15:10:01 -0800
commit16442341799dceea63e7cd6c3f77331f68f642e7 (patch)
tree0598e2578860ca8ffc1ec1d4622798c32164a1a2 /include/mbgl/map
parent94731a9ef0d9dd45b3d93fb19642ed41a447c423 (diff)
downloadqtlocation-mapboxgl-16442341799dceea63e7cd6c3f77331f68f642e7.tar.gz
[core] add setMaxZoom, setMinZoom
also change the default maxZoom to 20 to match -js.
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 1112ac6c93..5b89bf4a91 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -116,7 +116,9 @@ public:
CameraOptions cameraForLatLngBounds(const LatLngBounds&, const EdgeInsets&);
CameraOptions cameraForLatLngs(const std::vector<LatLng>&, const EdgeInsets&);
void resetZoom();
+ void setMinZoom(const double minZoom);
double getMinZoom() const;
+ void setMaxZoom(const double maxZoom);
double getMaxZoom() const;
// Rotation