Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[iOS] Remove unneccessary pitch check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
friedbunny committed Sep 10, 2015
1 parent 771ac0e commit f502e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/ios/MGLUserLocationAnnotationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ - (void)setupLayers

- (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;
Expand Down

0 comments on commit f502e90

Please sign in to comment.