diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-06-01 17:36:07 -0700 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-06-01 17:36:07 -0700 |
commit | d9c6181f347c3d6b3cfd4bca7c5ded0d6d93e63d (patch) | |
tree | cbe8e24f775a45dd722189bf79c3281b3ec3910b /platform/ios/app/MBXAnnotationView.m | |
parent | ce98a7bee7709cd07e7f064215474903a90a0836 (diff) | |
download | qtlocation-mapboxgl-d9c6181f347c3d6b3cfd4bca7c5ded0d6d93e63d.tar.gz |
[ios] Add annotation container view (#5194)
Add a container view to hold annotations. This gets around a performance
issue with `UIView:addSubview:` where adding views is N^2. It helps
annotation views avoid cutting into callout views when the annotation
views are transformed to be "flat".
Diffstat (limited to 'platform/ios/app/MBXAnnotationView.m')
-rw-r--r-- | platform/ios/app/MBXAnnotationView.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/app/MBXAnnotationView.m b/platform/ios/app/MBXAnnotationView.m index 8cbe07a367..890881a316 100644 --- a/platform/ios/app/MBXAnnotationView.m +++ b/platform/ios/app/MBXAnnotationView.m @@ -12,7 +12,7 @@ [super layoutSubviews]; if (!self.centerView) { self.backgroundColor = [UIColor blueColor]; - self.centerView = [[UIView alloc] initWithFrame:CGRectInset(self.bounds, 5.0, 5.0)]; + self.centerView = [[UIView alloc] initWithFrame:CGRectInset(self.bounds, 1.0, 1.0)]; self.centerView.backgroundColor = self.centerColor; [self addSubview:self.centerView]; } |