地图view的delegate
More...
#import <MAMapView.h>
◆ mapView:annotationView:calloutAccessoryControlTapped:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
annotationView: |
|
(MAAnnotationView *) |
view |
calloutAccessoryControlTapped: |
|
(UIControl *) |
control |
|
|
| |
|
optional |
标注view的accessory view(必须继承自UIControl)被点击时调用此接口
- Parameters
-
mapView | 地图View |
view | callout所属的标注view |
control | 对应的control |
◆ mapView:annotationView:didChangeDragState:fromOldState:()
拖动annotation view时view的状态变化,ios3.2以后支持
- Parameters
-
mapView | 地图View |
view | annotation view |
newState | 新状态 |
oldState | 旧状态 |
◆ mapView:didAddAnnotationViews:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didAddAnnotationViews: |
|
(NSArray *) |
views |
|
|
| |
|
optional |
当mapView新添加annotation views时调用此接口
- Parameters
-
mapView | 地图View |
views | 新添加的annotation views |
◆ mapView:didAddOverlayRenderers:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didAddOverlayRenderers: |
|
(NSArray *) |
renderers |
|
|
| |
|
optional |
当mapView新添加overlay renderer时调用此接口
- Parameters
-
mapView | 地图View |
renderers | 新添加的overlay renderers |
◆ mapView:didAddOverlayViews:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didAddOverlayViews: |
|
((deprecated("use -(void)mapView:(MAMapView *)mapView didAddOverlayRenderers:(NSArray *)renderers instead"))) |
__attribute__ |
|
|
| |
|
optional |
◆ mapView:didAnnotationViewCalloutTapped:()
标注view的calloutview整体点击时调用此接口
- Parameters
-
mapView | 地图的view |
view | calloutView所属的annotationView |
◆ mapView:didChangeUserTrackingMode:animated:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didChangeUserTrackingMode: |
|
(MAUserTrackingMode) |
mode |
animated: |
|
(BOOL) |
animated |
|
|
| |
|
optional |
当userTrackingMode改变时调用此接口
- Parameters
-
mapView | 地图View |
mode | 改变后的mode |
animated | 动画 |
◆ mapView:didDeselectAnnotationView:()
当取消选中一个annotation views时调用此接口
- Parameters
-
mapView | 地图View |
view | 取消选中的annotationView |
◆ mapView:didFailToLocateUserWithError:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didFailToLocateUserWithError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
定位失败后调用此接口
- Parameters
-
mapView | 地图View |
error | 错误号,参考CLError.h中定义的错误号 |
◆ mapView:didLongPressedAtCoordinate:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didLongPressedAtCoordinate: |
|
(CLLocationCoordinate2D) |
coordinate |
|
|
| |
|
optional |
长按地图底图调用此接口
- Parameters
-
mapView | 地图View |
coordinate | 长按位置经纬度 |
◆ mapView:didSelectAnnotationView:()
当选中一个annotation views时调用此接口
- Parameters
-
mapView | 地图View |
view | 选中的annotationView |
◆ mapView:didSingleTappedAtCoordinate:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didSingleTappedAtCoordinate: |
|
(CLLocationCoordinate2D) |
coordinate |
|
|
| |
|
optional |
单击地图底图调用此接口
- Parameters
-
mapView | 地图View |
coordinate | 点击位置经纬度 |
◆ mapView:didUpdateUserLocation:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didUpdateUserLocation: |
|
((deprecated("use -(void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation instead"))) |
__attribute__ |
|
|
| |
|
optional |
◆ mapView:didUpdateUserLocation:updatingLocation:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
didUpdateUserLocation: |
|
(MAUserLocation *) |
userLocation |
updatingLocation: |
|
(BOOL) |
updatingLocation |
|
|
| |
|
optional |
位置或者设备方向更新后调用此接口
- Parameters
-
mapView | 地图View |
userLocation | 用户定位信息(包括位置与设备方向等数据) |
updatingLocation | 标示是否是location数据更新, YES:location数据更新 NO:heading数据更新 |
◆ mapView:mapDidMoveByUser:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
mapDidMoveByUser: |
|
(BOOL) |
wasUserAction |
|
|
| |
|
optional |
地图移动结束后调用此接口
- Parameters
-
mapView | 地图view |
wasUserAction | 标识是否是用户动作 |
◆ mapView:mapDidZoomByUser:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
mapDidZoomByUser: |
|
(BOOL) |
wasUserAction |
|
|
| |
|
optional |
地图缩放结束后调用此接口
- Parameters
-
mapView | 地图view |
wasUserAction | 标识是否是用户动作 |
◆ mapView:mapWillMoveByUser:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
mapWillMoveByUser: |
|
(BOOL) |
wasUserAction |
|
|
| |
|
optional |
地图将要发生移动时调用此接口
- Parameters
-
mapView | 地图view |
wasUserAction | 标识是否是用户动作 |
◆ mapView:mapWillZoomByUser:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
mapWillZoomByUser: |
|
(BOOL) |
wasUserAction |
|
|
| |
|
optional |
地图将要发生缩放时调用此接口
- Parameters
-
mapView | 地图view |
wasUserAction | 标识是否是用户动作 |
◆ mapView:regionDidChangeAnimated:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
regionDidChangeAnimated: |
|
(BOOL) |
animated |
|
|
| |
|
optional |
地图区域改变完成后会调用此接口
- Parameters
-
mapView | 地图View |
animated | 是否动画 |
◆ mapView:regionWillChangeAnimated:()
- (void MAMapViewDelegate) mapView: |
|
(MAMapView *) |
mapView |
regionWillChangeAnimated: |
|
(BOOL) |
animated |
|
|
| |
|
optional |
地图区域即将改变时会调用此接口
- Parameters
-
mapView | 地图View |
animated | 是否动画 |
◆ mapView:rendererForOverlay:()
根据overlay生成对应的Renderer
- Parameters
-
mapView | 地图View |
overlay | 指定的overlay |
- Returns
- 生成的覆盖物Renderer
◆ mapView:viewForAnnotation:()
根据anntation生成对应的View
- Parameters
-
mapView | 地图View |
annotation | 指定的标注 |
- Returns
- 生成的标注View
◆ mapView:viewForOverlay:()
◆ mapViewDidStopLocatingUser:()
- (void MAMapViewDelegate) mapViewDidStopLocatingUser: |
|
(MAMapView *) |
mapView |
|
|
optional |
在地图View停止定位后调用此接口
- Parameters
-
◆ mapViewWillStartLocatingUser:()
- (void MAMapViewDelegate) mapViewWillStartLocatingUser: |
|
(MAMapView *) |
mapView |
|
|
optional |
在地图View将要启动定位时调用此接口
- Parameters
-
The documentation for this protocol was generated from the following file: