summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAnnotationView.h
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.h
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.h')
-rw-r--r--platform/ios/src/MGLAnnotationView.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAnnotationView.h b/platform/ios/src/MGLAnnotationView.h
index 5b8091e7b4..acf270dfcb 100644
--- a/platform/ios/src/MGLAnnotationView.h
+++ b/platform/ios/src/MGLAnnotationView.h
@@ -41,6 +41,26 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign, getter=isFlat) BOOL flat;
/**
+ Defaults to NO and becomes YES when the view is tapped on.
+
+ Selecting another view will first deselect the currently selected view.
+ This property should not be changed directly.
+ */
+@property (nonatomic, assign, getter=isSelected) BOOL selected;
+
+/**
+ Subclasses may override this method in order to customize appearance.
+ This method should not be called directly.
+ */
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated;
+
+/*
+ This property defaults to YES. Setting it to NO will cause the annotation view to ignore all touch events.
+ Subclasses may use this property to customize the appearance.
+ */
+@property (nonatomic, assign, getter=isEnabled) BOOL enabled;
+
+/**
Setting this property to YES will cause the annotation view to shrink as it approaches the horizon and grow as it moves away from the
horizon when the associated map view is tilted. Conversely, setting this property to NO will ensure that the annotation view maintains
a constant size even when the map view is tilted. To maintain consistency with annotation representations that are not backed by an