summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAnnotationView.mm
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-06-14 10:36:41 +0200
committerGitHub <noreply@github.com>2016-06-14 10:36:41 +0200
commita557e1e2c9f76a9b01d2a973a9a162e14525a669 (patch)
tree4acfbab5d11ce337952b2d4b734e646b7fc4629d /platform/ios/src/MGLAnnotationView.mm
parent19c34fe1f05c6a7af1d7c0492a52454934223857 (diff)
downloadqtlocation-mapboxgl-a557e1e2c9f76a9b01d2a973a9a162e14525a669.tar.gz
[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
Diffstat (limited to 'platform/ios/src/MGLAnnotationView.mm')
-rw-r--r--platform/ios/src/MGLAnnotationView.mm13
1 files changed, 13 insertions, 0 deletions
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];