[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:
committed by
Justin R. Miller
parent
2a300bd425
commit
7782802f37
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user