Authored by Justin R. Miller

only rotate marker annotations when rotating map view

... ... @@ -2541,11 +2541,8 @@
_overlayView.transform = CGAffineTransformIdentity;
for (RMAnnotation *annotation in _annotations)
{
if ( ! annotation.isUserLocationAnnotation)
annotation.layer.transform = CATransform3DIdentity;
}
}
completion:nil];
if (userLocationTrackingView || userHeadingTrackingView)
... ... @@ -2586,11 +2583,8 @@
_overlayView.transform = CGAffineTransformIdentity;
for (RMAnnotation *annotation in _annotations)
{
if ( ! annotation.isUserLocationAnnotation)
annotation.layer.transform = CATransform3DIdentity;
}
}
completion:nil];
userLocation.layer.hidden = NO;
... ... @@ -2800,11 +2794,9 @@
_overlayView.transform = CGAffineTransformMakeRotation(angle);
for (RMAnnotation *annotation in _annotations)
{
if ( ! annotation.isUserLocationAnnotation)
if ([annotation.layer isKindOfClass:[RMMarker class]] && ! annotation.isUserLocationAnnotation)
annotation.layer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMakeRotation(-angle));
}
}
completion:nil];
[CATransaction commit];
... ...