diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-03-02 18:19:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 18:19:23 -0500 |
commit | 8a5cc3560ac3ed5b2aa6273c7fbbd92a3692b1ec (patch) | |
tree | c90ccbb114272bd293a3d3e0b15ac630c3484f60 /platform/ios/src/MGLAnnotationView.mm | |
parent | e1c85e8ec3c66efa6a5da987b639c7c32aa68169 (diff) | |
download | qtlocation-mapboxgl-8a5cc3560ac3ed5b2aa6273c7fbbd92a3692b1ec.tar.gz |
[ios] MGLAnnotationView annotation property made writable (#8139)
Diffstat (limited to 'platform/ios/src/MGLAnnotationView.mm')
-rw-r--r-- | platform/ios/src/MGLAnnotationView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm index 5b105cde72..0e904779d5 100644 --- a/platform/ios/src/MGLAnnotationView.mm +++ b/platform/ios/src/MGLAnnotationView.mm @@ -10,7 +10,6 @@ @interface MGLAnnotationView () <UIGestureRecognizerDelegate> @property (nonatomic, readwrite, nullable) NSString *reuseIdentifier; -@property (nonatomic, readwrite, nullable) id <MGLAnnotation> annotation; @property (nonatomic, readwrite) CATransform3D lastAppliedScaleTransform; @property (nonatomic, weak) UIPanGestureRecognizer *panGestureRecognizer; @property (nonatomic, weak) UILongPressGestureRecognizer *longPressRecognizer; @@ -240,6 +239,7 @@ } else if (dragState == MGLAnnotationViewDragStateCanceling) { + NSAssert(self.annotation, @"Annotation property should not be nil."); self.panGestureRecognizer.enabled = NO; self.longPressRecognizer.enabled = NO; self.center = [self.mapView convertCoordinate:self.annotation.coordinate toPointToView:self.mapView]; |