summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-10-26 16:37:01 -0700
committerMinh Nguyễn <mxn@1ec5.org>2018-10-26 16:37:01 -0700
commite8cfce12b2cc2f8dc25916947193c4adbdc75a29 (patch)
tree17aaf0d5de771a6f50383464139511dd504f7e9a
parentf50d8dbe3afa2556b1ef404e39ef897e0093cd0c (diff)
downloadqtlocation-mapboxgl-e8cfce12b2cc2f8dc25916947193c4adbdc75a29.tar.gz
[macos] Removed redundant sign flipupstream/1ec5-camera-degrees-13210-2
Fixed an issue where the mbgl::CameraOptions’ heading was misinterpreted as going counterclockwise instead of clockwise.
-rw-r--r--platform/macos/src/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 6fdc679789..9f9bb855d2 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -1221,7 +1221,7 @@ public:
camera.centerCoordinate.latitude,
self.frame.size);
if (camera.heading >= 0) {
- options.angle = -camera.heading;
+ options.angle = camera.heading;
}
if (camera.pitch >= 0) {
options.pitch = camera.pitch;