大头针固定在屏幕上
///是否固定在屏幕一点, 注意,拖动或者手动改变经纬度,都会导致设置失效
@property (nonatomic, assign, getter = isLockedToScreen) BOOL lockedToScreen;
///固定屏幕点的坐标
@property (nonatomic, assign) CGPoint lockedScreenPoint;
//MAPointAnnotation *annotation;//系统大头针,继承至MAAnnotation
//MAPinAnnotationView //系统预定好的一个annotationView提供类似大头针的效果
MAAnnotationView 标注View 可以通过继承它来自定义大头针(标注)
///提供类似大头针效果的annotation view
@interface MAPinAnnotationView : MAAnnotationView
self.annotation.lockedScreenPoint = CGPointMake(self.mapView.centerX, self.mapView.centerY);
/**
* @brief 设置当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化
* @paramcoordinate要设置的中心点
* @paramanimated是否动画设置
*/
- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinateanimated:(BOOL)animated;
[self.mapView setCenterCoordinate:se