diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-06-19 16:33:44 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-07-26 13:38:02 +0000 |
commit | eca7cc8a260538fcccde97fe59d9580250600bf1 (patch) | |
tree | 6a87cc4391b1e0dbf65ee011d0314cfae4c8b19f /src/location/maps/qgeomap_p_p.h | |
parent | d6fc6ba0f84c4cda0ccc2e1250da4a68441dd6ba (diff) | |
download | qtlocation-eca7cc8a260538fcccde97fe59d9580250600bf1.tar.gz |
Introduce Map.visibleArea
This will allow moving the visible map area to a subregion
of the viewport, allowing to maintain the desired visible
region visible when overlaying controls on top of the map.
Task-number: QTBUG-68966
Change-Id: Idf4b30f7c1e4062e5e1c0ddc01a31bc856c0bc0c
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeomap_p_p.h')
-rw-r--r-- | src/location/maps/qgeomap_p_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap_p_p.h b/src/location/maps/qgeomap_p_p.h index 47780c47..7bda316d 100644 --- a/src/location/maps/qgeomap_p_p.h +++ b/src/location/maps/qgeomap_p_p.h @@ -103,6 +103,12 @@ protected: virtual void setCopyrightVisible(bool visible); virtual bool copyrightVisible() const; virtual double maximumCenterLatitudeAtZoom(const QGeoCameraData &cameraData) const; + virtual double minimumCenterLatitudeAtZoom(const QGeoCameraData &cameraData) const; + + virtual void setVisibleArea(const QRectF &visibleArea); + virtual QRectF visibleArea() const; + + QRectF clampVisibleArea(const QRectF &visibleArea) const; protected: QSize m_viewportSize; @@ -115,6 +121,7 @@ protected: QGeoCameraCapabilities m_cameraCapabilities; bool m_copyrightVisible = true; mutable double m_maximumViewportLatitude = 0; + mutable double m_minimumViewportLatitude = 0; }; QT_END_NAMESPACE |