From 0d7d2449b1365f7164db39cb0ec899306b835326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Sat, 2 Jul 2016 20:20:05 -0700 Subject: [PATCH] [ios] Fixed auto-shrinking annotation views Fixes #5547. --- platform/ios/src/MGLAnnotationView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm index 656b1c0f3..7f571c974 100644 --- a/platform/ios/src/MGLAnnotationView.mm +++ b/platform/ios/src/MGLAnnotationView.mm @@ -101,7 +101,7 @@ // reduction is then normalized for a scale of 1.0. CGFloat pitchAdjustedScale = 1.0 - maxScaleReduction * pitchIntensity; - CATransform3D transform = self.layer.transform; + CATransform3D transform = CATransform3DIdentity; self.layer.transform = CATransform3DScale(transform, pitchAdjustedScale, pitchAdjustedScale, 1); } }