diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2016-01-26 18:50:37 -0800 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2016-01-28 15:10:01 -0800 |
commit | 16442341799dceea63e7cd6c3f77331f68f642e7 (patch) | |
tree | 0598e2578860ca8ffc1ec1d4622798c32164a1a2 /include/mbgl/map | |
parent | 94731a9ef0d9dd45b3d93fb19642ed41a447c423 (diff) | |
download | qtlocation-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.hpp | 2 |
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 |