[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.
This commit is contained in:
Minh Nguyễn
2016-07-12 10:26:27 -07:00
committed by GitHub
parent 5ede3dd16f
commit ab6a17eec7

View File

@@ -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;
}
}