[ios] Avoid resetting pitch along with center offset

Fixed a bug causing an annotation view to be scaled based on a pitch of 0° when setting the view’s center offset.
This commit is contained in:
Minh Nguyễn
2016-06-05 01:49:40 -07:00
committed by Minh Nguyễn
parent 0d7d2449b1
commit 649b068270
2 changed files with 2 additions and 2 deletions

View File

@@ -911,8 +911,8 @@
children = (
40EDA1BD1CFE0D4A00D9EA68 /* MGLAnnotationContainerView.h */,
40EDA1BE1CFE0D4A00D9EA68 /* MGLAnnotationContainerView.m */,
4018B1C31CDC277F00F666AF /* MGLAnnotationView_Private.h */,
4018B1C51CDC277F00F666AF /* MGLAnnotationView.h */,
4018B1C31CDC277F00F666AF /* MGLAnnotationView_Private.h */,
4018B1C41CDC277F00F666AF /* MGLAnnotationView.mm */,
DA8848341CBAFB8500AB86E3 /* MGLAnnotationImage.h */,
DA8848401CBAFB9800AB86E3 /* MGLAnnotationImage_Private.h */,

View File

@@ -56,7 +56,7 @@
- (void)setCenter:(CGPoint)center
{
[self setCenter:center pitch:0];
[self setCenter:center pitch:self.mapView.camera.pitch];
}
- (void)setCenter:(CGPoint)center pitch:(CGFloat)pitch