summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJason Wray <jason@kulturny.com>2015-09-10 19:29:13 -0400
committerJustin R. Miller <incanus@codesorcery.net>2015-09-11 11:36:32 -0700
commit7782802f3741ddff15ae9753ca484d13543a65cd (patch)
treedaad8135fd658720d77a4de8ffb858f32779e01d /platform
parent2a300bd425cfed1a8494a0efd4790976ae2f5aa5 (diff)
downloadqtlocation-mapboxgl-7782802f3741ddff15ae9753ca484d13543a65cd.tar.gz
[iOS] Remove unneccessary pitch check
Fix case where moving the tilted dot off-screen, changing the pitch to 0, and then moving the dot back on screen would not reset the pitch of the dot.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLUserLocationAnnotationView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLUserLocationAnnotationView.m b/platform/ios/MGLUserLocationAnnotationView.m
index 22c1d00f13..b477b1088b 100644
--- a/platform/ios/MGLUserLocationAnnotationView.m
+++ b/platform/ios/MGLUserLocationAnnotationView.m
@@ -95,7 +95,7 @@ const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuck
- (void)updatePitch
{
- if (self.mapView.camera.pitch && (self.mapView.camera.pitch != _oldPitch))
+ if (self.mapView.camera.pitch != _oldPitch)
{
CATransform3D t = CATransform3DRotate(CATransform3DIdentity, MGLRadiansFromDegrees(self.mapView.camera.pitch), 1.0, 0, 0);
self.layer.sublayerTransform = t;