diff options
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 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 ¢er) */ 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_) |