summaryrefslogtreecommitdiff
path: root/platform/qt
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-02-27 19:58:35 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-04 14:45:32 +0200
commit21a39306da56c5d2c88447ba5ea053a7f989480a (patch)
tree7b932a7bb81c2de64546ef52bd72feb5aa4317c7 /platform/qt
parentf5f10ec11989ccb403c2cd4261db74c44b263558 (diff)
downloadqtlocation-mapboxgl-21a39306da56c5d2c88447ba5ea053a7f989480a.tar.gz
[core] Remove map pitch setters/getters
Diffstat (limited to 'platform/qt')
-rw-r--r--platform/qt/src/qmapboxgl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp
index 8059960601..cdeb4a962a 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -879,12 +879,12 @@ void QMapboxGL::setBearing(double degrees, const QPointF &center)
*/
double QMapboxGL::pitch() const
{
- return d_ptr->mapObj->getPitch();
+ return *d_ptr->mapObj->getCameraOptions().pitch;
}
void QMapboxGL::setPitch(double pitch_)
{
- d_ptr->mapObj->setPitch(pitch_);
+ d_ptr->mapObj->jumpTo(mbgl::CameraOptions().withPitch(pitch_));
}
void QMapboxGL::pitchBy(double pitch_)