diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-07-12 10:26:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-12 10:26:27 -0700 |
commit | ab6a17eec7d65afa874547347a1beb1a4c026c10 (patch) | |
tree | 89483be205661a16f0d0b3342bd4d67e87aff988 /platform | |
parent | 5ede3dd16f673151a6cd34fc78fbdaa08e227449 (diff) | |
download | qtlocation-mapboxgl-ab6a17eec7d65afa874547347a1beb1a4c026c10.tar.gz |
[ios] Ensure mapView is set when positioning (#5647)
Ensure the mapView property is set when positioning the annotation view, in case the map view needs to be consulted about its rotation or pitch.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 502e16cb47..ffd6fcbbb7 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -4586,8 +4586,8 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) [self.glView addSubview:annotationView]; } - annotationView.center = [self convertCoordinate:annotationContext.annotation.coordinate toPointToView:self]; annotationView.mapView = self; + annotationView.center = [self convertCoordinate:annotationContext.annotation.coordinate toPointToView:self]; annotationContext.annotationView = annotationView; } } |