From a557e1e2c9f76a9b01d2a973a9a162e14525a669 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Tue, 14 Jun 2016 10:36:41 +0200 Subject: [ios] fixes #5127, #5128, #5130 added enabled and selected property to MGLAnnotationView (#5297) [ios] fixes #5127, #5128, #5130 added enabled and selected property to MGLAnnotationView --- platform/ios/src/MGLAnnotationView.mm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'platform/ios/src/MGLAnnotationView.mm') diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm index 31657dbf4e..1a95beb23d 100644 --- a/platform/ios/src/MGLAnnotationView.mm +++ b/platform/ios/src/MGLAnnotationView.mm @@ -22,6 +22,7 @@ { _reuseIdentifier = [reuseIdentifier copy]; _scalesWithViewingDistance = YES; + _enabled = YES; } return self; } @@ -37,6 +38,18 @@ self.center = self.center; } +- (void)setSelected:(BOOL)selected +{ + [self setSelected:selected animated:NO]; +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated +{ + [self willChangeValueForKey:@"selected"]; + _selected = selected; + [self didChangeValueForKey:@"selected"]; +} + - (void)setCenter:(CGPoint)center { [self setCenter:center pitch:0]; -- cgit v1.2.1