[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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user