summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAnnotationView.h
diff options
context:
space:
mode:
authorfrederoni <bjorn.fredrik.karlsson@gmail.com>2016-05-18 09:47:54 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-05-18 09:47:54 -0700
commite8ea7483a7ed44d2786e2e4d5a1979cc8a1e32b6 (patch)
treeead4667f11b4ecd122cdf3799365dcfb94c3e2ec /platform/ios/src/MGLAnnotationView.h
parent8ee222c45e31413b03d1c83006cf4eadc0e6d3a7 (diff)
downloadqtlocation-mapboxgl-e8ea7483a7ed44d2786e2e4d5a1979cc8a1e32b6.tar.gz
[ios] Added centerOffset to MGLAnnotationView (#5062)
* [ios] Added centerOffset to MGLAnnotationView * [ios] Reposition immediately after changing the centerOffset closes #5059
Diffstat (limited to 'platform/ios/src/MGLAnnotationView.h')
-rw-r--r--platform/ios/src/MGLAnnotationView.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAnnotationView.h b/platform/ios/src/MGLAnnotationView.h
index bc2494e9fc..4d267636d1 100644
--- a/platform/ios/src/MGLAnnotationView.h
+++ b/platform/ios/src/MGLAnnotationView.h
@@ -26,6 +26,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, readonly, nullable) NSString *reuseIdentifier;
+/**
+ Annotation view is centered at the coordinate point of the associated annotation.
+
+ By changing this property you can reposition the view as needed. The offset is measured in points.
+ Positive offset moves the annotation view towards the bottom right, while negative offset moves it towards the top left.
+ */
+@property (nonatomic) CGVector centerOffset;
+
/**
Called when the view is removed from the reuse queue.