diff options
author | frederoni <bjorn.fredrik.karlsson@gmail.com> | 2016-05-18 09:47:54 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-18 09:47:54 -0700 |
commit | e8ea7483a7ed44d2786e2e4d5a1979cc8a1e32b6 (patch) | |
tree | ead4667f11b4ecd122cdf3799365dcfb94c3e2ec /platform/ios/src/MGLAnnotationView.h | |
parent | 8ee222c45e31413b03d1c83006cf4eadc0e6d3a7 (diff) | |
download | qtlocation-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.h | 8 |
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. |