Authored by Justin R. Miller

only rotate marker annotations when rotating map view

@@ -2541,10 +2541,7 @@ @@ -2541,10 +2541,7 @@
2541 _overlayView.transform = CGAffineTransformIdentity; 2541 _overlayView.transform = CGAffineTransformIdentity;
2542 2542
2543 for (RMAnnotation *annotation in _annotations) 2543 for (RMAnnotation *annotation in _annotations)
2544 - {  
2545 - if ( ! annotation.isUserLocationAnnotation)  
2546 - annotation.layer.transform = CATransform3DIdentity;  
2547 - } 2544 + annotation.layer.transform = CATransform3DIdentity;
2548 } 2545 }
2549 completion:nil]; 2546 completion:nil];
2550 2547
@@ -2586,10 +2583,7 @@ @@ -2586,10 +2583,7 @@
2586 _overlayView.transform = CGAffineTransformIdentity; 2583 _overlayView.transform = CGAffineTransformIdentity;
2587 2584
2588 for (RMAnnotation *annotation in _annotations) 2585 for (RMAnnotation *annotation in _annotations)
2589 - {  
2590 - if ( ! annotation.isUserLocationAnnotation)  
2591 - annotation.layer.transform = CATransform3DIdentity;  
2592 - } 2586 + annotation.layer.transform = CATransform3DIdentity;
2593 } 2587 }
2594 completion:nil]; 2588 completion:nil];
2595 2589
@@ -2800,10 +2794,8 @@ @@ -2800,10 +2794,8 @@
2800 _overlayView.transform = CGAffineTransformMakeRotation(angle); 2794 _overlayView.transform = CGAffineTransformMakeRotation(angle);
2801 2795
2802 for (RMAnnotation *annotation in _annotations) 2796 for (RMAnnotation *annotation in _annotations)
2803 - {  
2804 - if ( ! annotation.isUserLocationAnnotation) 2797 + if ([annotation.layer isKindOfClass:[RMMarker class]] && ! annotation.isUserLocationAnnotation)
2805 annotation.layer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMakeRotation(-angle)); 2798 annotation.layer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMakeRotation(-angle));
2806 - }  
2807 } 2799 }
2808 completion:nil]; 2800 completion:nil];
2809 2801