iOS高德地图SDK(2D)  v5.6.0
<MAMapViewDelegate > Protocol Reference

地图view的delegate More...

#import <MAMapView.h>

Inheritance diagram for <MAMapViewDelegate >:

Instance Methods

(void) - mapView:regionWillChangeAnimated:
 地图区域即将改变时会调用此接口 More...
 
(void) - mapView:regionDidChangeAnimated:
 地图区域改变完成后会调用此接口 More...
 
(void) - mapView:mapWillMoveByUser:
 地图将要发生移动时调用此接口 More...
 
(void) - mapView:mapDidMoveByUser:
 地图移动结束后调用此接口 More...
 
(void) - mapView:mapWillZoomByUser:
 地图将要发生缩放时调用此接口 More...
 
(void) - mapView:mapDidZoomByUser:
 地图缩放结束后调用此接口 More...
 
(void) - mapView:didSingleTappedAtCoordinate:
 单击地图底图调用此接口 More...
 
(void) - mapView:didLongPressedAtCoordinate:
 长按地图底图调用此接口 More...
 
(MAAnnotationView *) - mapView:viewForAnnotation:
 根据anntation生成对应的View More...
 
(void) - mapView:didAddAnnotationViews:
 当mapView新添加annotation views时调用此接口 More...
 
(void) - mapView:didSelectAnnotationView:
 当选中一个annotation views时调用此接口 More...
 
(void) - mapView:didDeselectAnnotationView:
 当取消选中一个annotation views时调用此接口 More...
 
(void) - mapView:annotationView:calloutAccessoryControlTapped:
 标注view的accessory view(必须继承自UIControl)被点击时调用此接口 More...
 
(void) - mapView:didAnnotationViewCalloutTapped:
 标注view的calloutview整体点击时调用此接口 More...
 
(void) - mapViewWillStartLocatingUser:
 在地图View将要启动定位时调用此接口 More...
 
(void) - mapViewDidStopLocatingUser:
 在地图View停止定位后调用此接口 More...
 
(void) - mapView:didUpdateUserLocation:updatingLocation:
 位置或者设备方向更新后调用此接口 More...
 
(void) - mapView:didFailToLocateUserWithError:
 定位失败后调用此接口 More...
 
(void) - mapView:didChangeUserTrackingMode:animated:
 当userTrackingMode改变时调用此接口 More...
 
(void) - mapView:annotationView:didChangeDragState:fromOldState:
 拖动annotation view时view的状态变化,ios3.2以后支持 More...
 
(MAOverlayRenderer *) - mapView:rendererForOverlay:
 根据overlay生成对应的Renderer More...
 
(void) - mapView:didAddOverlayRenderers:
 当mapView新添加overlay renderer时调用此接口 More...
 
(MAOverlayView *) - mapView:viewForOverlay:
 
(void) - mapView:didUpdateUserLocation:
 
(void) - mapView:didAddOverlayViews:
 

Detailed Description

地图view的delegate

Method Documentation

◆ mapView:annotationView:calloutAccessoryControlTapped:()

- (void MAMapViewDelegate) mapView: (MAMapView *)  mapView
annotationView: (MAAnnotationView *)  view
calloutAccessoryControlTapped: (UIControl *)  control 
optional

标注view的accessory view(必须继承自UIControl)被点击时调用此接口

Parameters
mapView地图View
viewcallout所属的标注view
control对应的control

◆ mapView:annotationView:didChangeDragState:fromOldState:()

- (void MAMapViewDelegate) mapView: (MAMapView *)  mapView
annotationView: (MAAnnotationView *)  view
didChangeDragState: (MAAnnotationViewDragState newState
fromOldState: (MAAnnotationViewDragState oldState 
optional

拖动annotation view时view的状态变化,ios3.2以后支持

Parameters
mapView地图View
viewannotation 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:()

- (void MAMapViewDelegate) mapView: (MAMapView *)  mapView
didAnnotationViewCalloutTapped: (MAAnnotationView *)  view 
optional

标注view的calloutview整体点击时调用此接口

Parameters
mapView地图的view
viewcalloutView所属的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:()

- (void MAMapViewDelegate) mapView: (MAMapView *)  mapView
didDeselectAnnotationView: (MAAnnotationView *)  view 
optional

当取消选中一个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:()

- (void MAMapViewDelegate) mapView: (MAMapView *)  mapView
didSelectAnnotationView: (MAAnnotationView *)  view 
optional

当选中一个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:()

- (MAOverlayRenderer * MAMapViewDelegate) mapView: (MAMapView *)  mapView
rendererForOverlay: (id< MAOverlay >)  overlay 
optional

根据overlay生成对应的Renderer

Parameters
mapView地图View
overlay指定的overlay
Returns
生成的覆盖物Renderer

◆ mapView:viewForAnnotation:()

- (MAAnnotationView* MAMapViewDelegate) mapView: (MAMapView *)  mapView
viewForAnnotation: (id< MAAnnotation >)  annotation 
optional

根据anntation生成对应的View

Parameters
mapView地图View
annotation指定的标注
Returns
生成的标注View

◆ mapView:viewForOverlay:()

- (MAOverlayView * MAMapViewDelegate) mapView: (MAMapView *)  mapView
viewForOverlay: ((deprecated("use -(MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay instead")))  __attribute__ 
optional

◆ mapViewDidStopLocatingUser:()

- (void MAMapViewDelegate) mapViewDidStopLocatingUser: (MAMapView *)  mapView
optional

在地图View停止定位后调用此接口

Parameters
mapView地图View

◆ mapViewWillStartLocatingUser:()

- (void MAMapViewDelegate) mapViewWillStartLocatingUser: (MAMapView *)  mapView
optional

在地图View将要启动定位时调用此接口

Parameters
mapView地图View

The documentation for this protocol was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。