diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-06-05 13:23:58 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-07-02 21:00:36 -0700 |
commit | bb4606b53de1ae06cff81d7f05be31d163b78f86 (patch) | |
tree | bb562b218dfccab66eb3eb3f30f6c53f93984008 /platform/ios/src/MGLAnnotationView_Private.h | |
parent | 649b0682709c44d82d89f6c32a671641161b70ad (diff) | |
download | qtlocation-mapboxgl-bb4606b53de1ae06cff81d7f05be31d163b78f86.tar.gz |
[ios] Fixed KVO for annotation view center
Always reposition the annotation view using the standard -setCenter: setter, fixing KVO compliance for the center key path and making the view behave more like a normal view. -setCenter: updates the transform by side effect, and it always starts from the identity transform to avoid surprises. To apply a custom transform on an annotation view, make sure to apply it in -mapView:didFinishLoadingFrame:fullyRendered: based on the existing transform.
Diffstat (limited to 'platform/ios/src/MGLAnnotationView_Private.h')
-rw-r--r-- | platform/ios/src/MGLAnnotationView_Private.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/ios/src/MGLAnnotationView_Private.h b/platform/ios/src/MGLAnnotationView_Private.h index 8f4f4fc17a..8a0af3565c 100644 --- a/platform/ios/src/MGLAnnotationView_Private.h +++ b/platform/ios/src/MGLAnnotationView_Private.h @@ -11,8 +11,6 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, readwrite, nullable) id <MGLAnnotation> annotation; @property (nonatomic, weak) MGLMapView *mapView; -- (void)setCenter:(CGPoint)center pitch:(CGFloat)pitch; - @end NS_ASSUME_NONNULL_END |