[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.
This commit is contained in:
Jason Wray
2015-09-10 19:29:13 -04:00
committed by Justin R. Miller
parent 2a300bd425
commit 7782802f37

View File

@@ -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;