summaryrefslogtreecommitdiff
path: root/platform/qt/src/qmapboxgl.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-16 15:53:27 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-17 13:58:49 +0200
commit09763366960e11c76353188f0ce7a65692b0b9ee (patch)
tree593a9d23c1c58b9dd5f636e8626c7d1bf2c13875 /platform/qt/src/qmapboxgl.cpp
parent62af756ab8250e00a63776c2d32bf3123909eddb (diff)
downloadqtlocation-mapboxgl-09763366960e11c76353188f0ce7a65692b0b9ee.tar.gz
[core] CameraOptions receives and outputs angle and pitch as degrees, not radians
Diffstat (limited to 'platform/qt/src/qmapboxgl.cpp')
-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 e1fe7f5a37..ceed411ca3 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -808,10 +808,10 @@ void QMapboxGL::jumpTo(const QMapboxGLCameraOptions& camera)
mbglCamera.zoom = camera.zoom.value<double>();
}
if (camera.angle.isValid()) {
- mbglCamera.angle = -camera.angle.value<double>() * mbgl::util::DEG2RAD;
+ mbglCamera.angle = camera.angle.value<double>();
}
if (camera.pitch.isValid()) {
- mbglCamera.pitch = camera.pitch.value<double>() * mbgl::util::DEG2RAD;
+ mbglCamera.pitch = camera.pitch.value<double>();
}
mbglCamera.padding = d_ptr->margins;