summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-07-02 20:20:05 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-07-02 20:20:05 -0700
commit0d7d2449b1365f7164db39cb0ec899306b835326 (patch)
treea9d865985b3b72fad4488ec8af53d8f157d210a9
parentf2fdc23ec7b39d1ee6c9e4b37ad4952e4a5f5447 (diff)
downloadqtlocation-mapboxgl-0d7d2449b1365f7164db39cb0ec899306b835326.tar.gz
[ios] Fixed auto-shrinking annotation views
Fixes #5547.
-rw-r--r--platform/ios/src/MGLAnnotationView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm
index 656b1c0f3e..7f571c9744 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);
}
}