diff options
author | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-03-08 12:43:05 +0200 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-03-14 18:33:11 +0200 |
commit | 57334407473a31ff43baa645dafd2f5e1bd910fb (patch) | |
tree | e981f87c0040799a1ebc45f86d05b3ece6916aba /platform/qt | |
parent | 11de777628e9e2c4b219bae3f1a6eabd86f2a3c5 (diff) | |
download | qtlocation-mapboxgl-57334407473a31ff43baa645dafd2f5e1bd910fb.tar.gz |
[core] Group Map LatLngBounds, min and max zoom methods
Group bounds, minimum and maximum zoom related methods together using
the new BoundOptions.
v2: Document that getBounds() initializes all optional fields.
- Add test for getBounds() on a map with default values.
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index 990e70c97f..b05c82a783 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -765,7 +765,7 @@ void QMapboxGL::setZoom(double zoom_) */ double QMapboxGL::minimumZoom() const { - return d_ptr->mapObj->getMinZoom(); + return *d_ptr->mapObj->getBounds().minZoom; } /*! @@ -775,7 +775,7 @@ double QMapboxGL::minimumZoom() const */ double QMapboxGL::maximumZoom() const { - return d_ptr->mapObj->getMaxZoom(); + return *d_ptr->mapObj->getBounds().maxZoom; } /*! |