|
高德地图SDK(导航)
V11.1.000
|
#import <MAMapView.h>
Instance Methods | |
| (void) | - mapViewRegionChanged: |
| 地图区域改变过程中会调用此接口 since 4.6.0 This interface will be called during the map region change process. since 4.6.0 More... | |
| (void) | - mapView:regionWillChangeAnimated: |
| 地图区域即将改变时会调用此接口 This interface will be called when the map region is about to change More... | |
| (void) | - mapView:regionDidChangeAnimated: |
| 地图区域改变完成后会调用此接口 This interface will be called after the map region change is completed More... | |
| (void) | - mapView:regionWillChangeAnimated:wasUserAction: |
| 地图区域即将改变时会调用此接口,如实现此接口则不会触发回掉mapView:regionWillChangeAnimated: This interface will be called when the map region is about to change, and if this interface is implemented, the callback mapView:regionWillChangeAnimated: will not be triggered More... | |
| (void) | - mapView:regionDidChangeAnimated:wasUserAction: |
| 地图区域改变完成后会调用此接口,如实现此接口则不会触发回掉mapView:regionDidChangeAnimated: This interface will be called after the map region change is completed,and if this interface is implemented, the callback mapView:regionDidChangeAnimated: will not be triggered More... | |
| (void) | - mapView:mapWillMoveByUser: |
| 地图将要发生移动时调用此接口 This interface will be called when the map is about to move More... | |
| (void) | - mapView:mapDidMoveByUser: |
| 地图移动结束后调用此接口 This interface will be called after the map movement ends More... | |
| (void) | - mapView:mapWillZoomByUser: |
| 地图将要发生缩放时调用此接口 This interface is called when the map is about to zoom More... | |
| (void) | - mapView:mapDidZoomByUser: |
| 地图缩放结束后调用此接口 This interface is called after the map zoom ends More... | |
| (void) | - mapViewWillStartLoadingMap: |
| 地图开始加载 The map starts loading More... | |
| (void) | - mapViewDidFinishLoadingMap: |
| 地图加载成功 The map is loaded successfully More... | |
| (void) | - mapViewDidFailLoadingMap:withError: |
| 地图加载失败 The map fails to load More... | |
| (void) | - mapView:didFailLoadTerrainWithError: |
| 地形图加载失败 Terrain map failed to load More... | |
| (MAAnnotationView *) | - mapView:viewForAnnotation: |
| 根据anntation生成对应的View。 Generate corresponding View based on annotation. More... | |
| (void) | - mapView:didAddAnnotationViews: |
| 当mapView新添加annotation views时,调用此接口 This interface is called when new annotation views are added to the mapView More... | |
| (void) | - mapView:didSelectAnnotationView: |
| 当选中一个annotation view时,调用此接口. 注意如果已经是选中状态,再次点击不会触发此回调。取消选中需调用-(void)deselectAnnotation:animated: This interface is called when an annotation view is selected. Note that if it is already in the selected state, clicking again will not trigger this callback. To deselect, call -(void)deselectAnnotation:animated: More... | |
| (void) | - mapView:didDeselectAnnotationView: |
| 当取消选中一个annotation view时,调用此接口 This interface is called when an annotation view is deselected More... | |
| (void) | - mapViewWillStartLocatingUser: |
| 在地图View将要启动定位时,会调用此函数 This function is called when the map view is about to start positioning More... | |
| (void) | - mapViewDidStopLocatingUser: |
| 在地图View停止定位后,会调用此函数 This function will be called after the MapView stops locating More... | |
| (void) | - mapView:didUpdateUserLocation:updatingLocation: |
| 位置或者设备方向更新后,会调用此函数 This function will be called after the location or device orientation is updated More... | |
| (void) | - mapViewRequireLocationAuth: |
| 当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription,并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined,会调用代理的此方法。 此方法实现调用后台权限API即可( 该回调必须实现 [locationManager requestAlwaysAuthorization] ); since 6.8.0 When the plist is configured with NSLocationAlwaysUsageDescription or NSLocationAlwaysAndWhenInUseUsageDescription, and [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined, this method of the delegate will be called. This method just needs to call the background permission API (this callback must implement [locationManager requestAlwaysAuthorization]); since 6.8.0 More... | |
| (void) | - mapView:didFailToLocateUserWithError: |
| 定位失败后,会调用此函数 This function will be called after positioning failure More... | |
| (void) | - mapView:annotationView:didChangeDragState:fromOldState: |
| 拖动annotation view时view的状态变化 State changes of the annotation view during dragging More... | |
| (MAOverlayRenderer *) | - mapView:rendererForOverlay: |
| 根据overlay生成对应的Renderer Generate the corresponding Renderer based on the overlay More... | |
| (void) | - mapView:didAddOverlayRenderers: |
| 当mapView新添加overlay renderers时,调用此接口 Call this interface when mapView adds new overlay renderers More... | |
| (void) | - mapView:annotationView:calloutAccessoryControlTapped: |
| 标注view的accessory view(必须继承自UIControl)被点击时,触发该回调 When the accessory view of the annotation view (must inherit from UIControl) is clicked, this callback is triggered More... | |
| (void) | - mapView:didAnnotationViewCalloutTapped: |
| 标注view的calloutview整体点击时,触发该回调。只有使用默认calloutview时才生效。 Triggers this callback when the calloutView of the annotationView is clicked. Only takes effect when using the default calloutView More... | |
| (void) | - mapView:didAnnotationViewTapped: |
| 标注view被点击时,触发该回调。(since 5.7.0) When the annotation view is clicked, this callback is triggered (since 5.7.0) More... | |
| (void) | - mapView:didChangeUserTrackingMode:animated: |
| 当userTrackingMode改变时,调用此接口 When the userTrackingMode changes, this interface is called More... | |
| (void) | - mapView:didChangeOpenGLESDisabled: |
| 当openGLESDisabled变量改变时,调用此接口 When the openGLESDisabled variable changes, call this interface More... | |
| (void) | - mapView:didTouchPois: |
| 当touchPOIEnabled == YES时,单击地图使用该回调获取POI信息 When touchPOIEnabled == YES, click on the map to use this callback to get POI information More... | |
| (void) | - mapView:didSingleTappedAtCoordinate: |
| 单击地图回调,返回经纬度 Click on the map callback, return latitude and longitude More... | |
| (void) | - mapView:didLongPressedAtCoordinate: |
| 长按地图,返回经纬度 Long press on the map, return latitude and longitude More... | |
| (void) | - mapInitComplete: |
| 地图初始化完成(在此之后,可以进行坐标计算) Map initialization completed (after this, coordinate calculations can be performed) More... | |
| (void) | - mapView:didIndoorMapShowed: |
| 室内地图出现,返回室内地图信息 Indoor map appears, returns indoor map information More... | |
| (void) | - mapView:didIndoorMapFloorIndexChanged: |
| 室内地图楼层发生变化,返回变化的楼层 Indoor map floor changes, returns the changed floor More... | |
| (void) | - mapView:didIndoorMapHidden: |
| 室内地图消失后,返回室内地图信息 After the indoor map disappears, return to the indoor map information More... | |
| (void) | - offlineDataWillReload: |
| 离线地图数据将要被加载, 调用reloadMap会触发该回调,离线数据生效前的回调. Offline map data is about to be loaded, calling reloadMap will trigger this callback, the callback before the offline data takes effect. More... | |
| (void) | - offlineDataDidReload: |
| 离线地图数据加载完成, 调用reloadMap会触发该回调,离线数据生效后的回调. Offline map data loading completed. Calling reloadMap will trigger this callback, which is the callback after the offline data takes effect. More... | |
| (void) | - customMapStyleAuthFailedWithErrorCode:message: |
| 自定义地图样式在线数据加载鉴权失败回调 More... | |
|
optional |
自定义地图样式在线数据加载鉴权失败回调
| errorCode | 错误码 |
| msg | 错误信息 |
|
optional |
地图初始化完成(在此之后,可以进行坐标计算) Map initialization completed (after this, coordinate calculations can be performed)
| mapView | 地图View Map view |
|
optional |
标注view的accessory view(必须继承自UIControl)被点击时,触发该回调 When the accessory view of the annotation view (must inherit from UIControl) is clicked, this callback is triggered
| mapView | 地图View Map view |
| view | callout所属的标注view the annotation view to which the callout belongs |
| control | 对应的control Corresponding control |
|
optional |
拖动annotation view时view的状态变化 State changes of the annotation view during dragging
| mapView | 地图View Map view |
| view | annotation view |
| newState | 新状态 New state |
| oldState | 旧状态 Old state |
|
optional |
当mapView新添加annotation views时,调用此接口 This interface is called when new annotation views are added to the mapView
| mapView | 地图View Map view |
| views | 新添加的annotation views the newly added annotation views |
|
optional |
当mapView新添加overlay renderers时,调用此接口 Call this interface when mapView adds new overlay renderers
| mapView | 地图View Map view |
| overlayRenderers | 新添加的overlay renderers Newly added overlay renderers |
|
optional |
标注view的calloutview整体点击时,触发该回调。只有使用默认calloutview时才生效。 Triggers this callback when the calloutView of the annotationView is clicked. Only takes effect when using the default calloutView
| mapView | 地图的view Map view |
| view | calloutView所属的annotationView The annotationView to which the calloutView belongs |
|
optional |
标注view被点击时,触发该回调。(since 5.7.0) When the annotation view is clicked, this callback is triggered (since 5.7.0)
| mapView | 地图的view Map view |
| view | annotationView |
|
optional |
当openGLESDisabled变量改变时,调用此接口 When the openGLESDisabled variable changes, call this interface
| mapView | 地图View Map view |
| openGLESDisabled | 改变后的openGLESDisabled the changed openGLESDisabled |
|
optional |
当userTrackingMode改变时,调用此接口 When the userTrackingMode changes, this interface is called
| mapView | 地图View Map view |
| mode | 改变后的mode The changed mode |
| animated | 动画 Animation |
|
optional |
当取消选中一个annotation view时,调用此接口 This interface is called when an annotation view is deselected
| mapView | 地图View Map view |
| view | 取消选中的annotation view Deselect the annotation view |
|
optional |
地形图加载失败 Terrain map failed to load
| mapView | 地图View Map view |
| error | 错误信息 Error message |
|
optional |
定位失败后,会调用此函数 This function will be called after positioning failure
| mapView | 地图View Map view |
| error | 错误号,参考CLError.h中定义的错误号 Error code, refer to the error codes defined in CLError.h |
|
optional |
室内地图楼层发生变化,返回变化的楼层 Indoor map floor changes, returns the changed floor
| mapView | 地图View Map view |
| indoorInfo | 变化的楼层 Changing floors |
|
optional |
室内地图消失后,返回室内地图信息 After the indoor map disappears, return to the indoor map information
| mapView | 地图View Map view |
| indoorInfo | 室内地图信息 Indoor map information |
|
optional |
室内地图出现,返回室内地图信息 Indoor map appears, returns indoor map information
| mapView | 地图View Map view |
| indoorInfo | 室内地图信息 Indoor map information |
|
optional |
长按地图,返回经纬度 Long press on the map, return latitude and longitude
| mapView | 地图View Map view |
| coordinate | 经纬度 latitude and longitude |
|
optional |
当选中一个annotation view时,调用此接口. 注意如果已经是选中状态,再次点击不会触发此回调。取消选中需调用-(void)deselectAnnotation:animated: This interface is called when an annotation view is selected. Note that if it is already in the selected state, clicking again will not trigger this callback. To deselect, call -(void)deselectAnnotation:animated:
| mapView | 地图View Map view |
| view | 选中的annotation view On the selected annotation view |
|
optional |
单击地图回调,返回经纬度 Click on the map callback, return latitude and longitude
| mapView | 地图View Map view |
| coordinate | 经纬度 latitude and longitude |
|
optional |
当touchPOIEnabled == YES时,单击地图使用该回调获取POI信息 When touchPOIEnabled == YES, click on the map to use this callback to get POI information
| mapView | 地图View Map view |
| pois | 获取到的poi数组(由MATouchPoi组成) the obtained poi array (composed of MATouchPoi) |
|
optional |
位置或者设备方向更新后,会调用此函数 This function will be called after the location or device orientation is updated
| mapView | 地图View Map view |
| userLocation | 用户定位信息(包括位置与设备方向等数据) User location information (including location and device orientation data) |
| updatingLocation | 标示是否是location数据更新, YES:location数据更新 NO:heading数据更新 Indicates whether it is a location data update, YES: location data update NO: heading data update |
|
optional |
地图移动结束后调用此接口 This interface will be called after the map movement ends
| mapView | 地图view Map view |
| wasUserAction | 标识是否是用户动作 Identifies whether it is a user action |
|
optional |
地图缩放结束后调用此接口 This interface is called after the map zoom ends
| mapView | 地图view Map view |
| wasUserAction | 标识是否是用户动作 Identifies whether it is a user action |
|
optional |
地图将要发生移动时调用此接口 This interface will be called when the map is about to move
| mapView | 地图view Map view |
| wasUserAction | 标识是否是用户动作 Identifies whether it is a user action |
|
optional |
地图将要发生缩放时调用此接口 This interface is called when the map is about to zoom
| mapView | 地图view Map view |
| wasUserAction | 标识是否是用户动作 Identifies whether it is a user action |
|
optional |
地图区域改变完成后会调用此接口 This interface will be called after the map region change is completed
| mapView | 地图View Map View |
| animated | 是否动画 Whether to animate |
|
optional |
地图区域改变完成后会调用此接口,如实现此接口则不会触发回掉mapView:regionDidChangeAnimated: This interface will be called after the map region change is completed,and if this interface is implemented, the callback mapView:regionDidChangeAnimated: will not be triggered
| mapView | 地图View Map View |
| animated | 是否动画 Whether to animate |
| wasUserAction | 标识是否是用户动作 Indicates whether it is a user action |
|
optional |
地图区域即将改变时会调用此接口 This interface will be called when the map region is about to change
| mapView | 地图View Map View |
| animated | 是否动画 Whether to animate |
|
optional |
地图区域即将改变时会调用此接口,如实现此接口则不会触发回掉mapView:regionWillChangeAnimated: This interface will be called when the map region is about to change, and if this interface is implemented, the callback mapView:regionWillChangeAnimated: will not be triggered
| mapView | 地图View Map View |
| animated | 是否动画 Whether to animate |
| wasUserAction | 标识是否是用户动作 Indicates whether it is a user action |
|
optional |
根据overlay生成对应的Renderer Generate the corresponding Renderer based on the overlay
| mapView | 地图View Map view |
| overlay | 指定的overlay the specified overlay |
|
optional |
根据anntation生成对应的View。 Generate corresponding View based on annotation.
注意: Note: 1、5.1.0后由于定位蓝点增加了平滑移动功能,如果在开启定位的情况先添加annotation,需要在此回调方法中判断annotation是否为MAUserLocation,从而返回正确的View。 if ([annotation isKindOfClass:[MAUserLocation class]]) { return nil; } After version 5.1.0, the positioning blue dot has added a smooth movement function. If you add an annotation while the positioning is turned on,it is necessary to determine whether the annotation is MAUserLocation in this callback method in order to return the correct View. if ([annotation isKindOfClass:[MAUserLocation class]]) { return nil; }
2、请不要在此回调中对annotation进行select和deselect操作,此时annotationView还未添加到mapview。 Please do not perform select or deselect operations on the annotation in this callback, as the annotationView has not been added to the mapView yet.
| mapView | 地图View Map view |
| annotation | 指定的标注 Specified annotation |
|
optional |
地图加载失败 The map fails to load
| mapView | 地图View Map view |
| error | 错误信息 Error message |
|
optional |
地图加载成功 The map is loaded successfully
| mapView | 地图View Map view |
|
optional |
在地图View停止定位后,会调用此函数 This function will be called after the MapView stops locating
| mapView | 地图View Map view |
|
optional |
地图区域改变过程中会调用此接口 since 4.6.0 This interface will be called during the map region change process. since 4.6.0
| mapView | 地图View Map View |
|
optional |
当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription,并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined,会调用代理的此方法。 此方法实现调用后台权限API即可( 该回调必须实现 [locationManager requestAlwaysAuthorization] ); since 6.8.0 When the plist is configured with NSLocationAlwaysUsageDescription or NSLocationAlwaysAndWhenInUseUsageDescription, and [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined, this method of the delegate will be called. This method just needs to call the background permission API (this callback must implement [locationManager requestAlwaysAuthorization]); since 6.8.0
| locationManager | 地图的CLLocationManager。 Map's CLLocationManager |
|
optional |
地图开始加载 The map starts loading
| mapView | 地图View Map view |
|
optional |
在地图View将要启动定位时,会调用此函数 This function is called when the map view is about to start positioning
| mapView | 地图View Map view |
|
optional |
离线地图数据加载完成, 调用reloadMap会触发该回调,离线数据生效后的回调. Offline map data loading completed. Calling reloadMap will trigger this callback, which is the callback after the offline data takes effect.
| mapView | 地图View, Map view |
|
optional |
离线地图数据将要被加载, 调用reloadMap会触发该回调,离线数据生效前的回调. Offline map data is about to be loaded, calling reloadMap will trigger this callback, the callback before the offline data takes effect.
| mapView | 地图View Map view |