diff options
Diffstat (limited to 'platform/ios/app/MBXAnnotationView.m')
-rw-r--r-- | platform/ios/app/MBXAnnotationView.m | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/platform/ios/app/MBXAnnotationView.m b/platform/ios/app/MBXAnnotationView.m index 82af15314a..61f9b1c047 100644 --- a/platform/ios/app/MBXAnnotationView.m +++ b/platform/ios/app/MBXAnnotationView.m @@ -1,28 +1,16 @@ #import "MBXAnnotationView.h" @interface MBXAnnotationView () - -@property (nonatomic) UIView *centerView; - @end @implementation MBXAnnotationView - (void)layoutSubviews { [super layoutSubviews]; - if (!self.centerView) { - self.backgroundColor = [UIColor blueColor]; - self.centerView = [[UIView alloc] initWithFrame:CGRectInset(self.bounds, 1.0, 1.0)]; - self.centerView.backgroundColor = self.centerColor; - [self addSubview:self.centerView]; - } -} - -- (void)setCenterColor:(UIColor *)centerColor { - if (![_centerColor isEqual:centerColor]) { - _centerColor = centerColor; - self.centerView.backgroundColor = centerColor; - } + + self.layer.borderColor = [UIColor blueColor].CGColor; + self.layer.borderWidth = 1; + self.layer.cornerRadius = 2; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated |