|
高德地图SDK(导航) V10.0.600
|
导航组件类 since 5.1.0 注意:AMapNaviCompositeManager 内部使用了单例 [AMapNaviDriveManager sharedInstance] More...
#import <AMapNaviCompositeManager.h>
Instance Methods | |
| (void) | - presentRoutePlanViewControllerWithOptions: |
| 通过present的方式显示导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效. | |
| (void) | - dismissWithAnimated: |
| 退出导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效. since 5.5.0 | |
| (void) | - addAnnotation: |
| 在驾车导航界面添加自定义标注. 注意:每次退出导航之后,标注都会被清空. since 5.5.0 | |
| (void) | - removeAnnotation: |
| 移除驾车导航界面的自定义标注. since 5.5.0 | |
| (void) | - addCustomOverlay: |
| 在驾车导航界面添加自定义Overlay. 注意:每次退出导航之后,Overlay都会被清空. since 6.7.0 | |
| (void) | - removeCustomOverlay: |
| 移除驾车导航界面的自定义Overlay. since 6.7.0 | |
Properties | |
| id< AMapNaviCompositeManagerDelegate > | delegate |
| 实现了 AMapNaviCompositeManagerDelegate 协议的类指针 | |
| NSInteger | naviRouteID |
| 当前选择的导航路径的ID | |
| AMapNaviRoute * | naviRoute |
| 当前选择的导航路径的信息,参考 AMapNaviRoute 类. | |
| NSArray< NSNumber * > * | naviRouteIDs |
| 路径规划后的所有路径ID,路径ID为 NSInteger 类型. | |
| NSDictionary< NSNumber *, AMapNaviRoute * > * | naviRoutes |
| 路径规划后的所有路径信息,参考 AMapNaviRoute 类. | |
导航组件类 since 5.1.0 注意:AMapNaviCompositeManager 内部使用了单例 [AMapNaviDriveManager sharedInstance]
| - (void) addAnnotation: | (AMapNaviCompositeCustomAnnotation *_Nonnull) | annotation |
在驾车导航界面添加自定义标注. 注意:每次退出导航之后,标注都会被清空. since 5.5.0
| annotation | 会被显示在驾车导航界面地图上, 具体参考 AMapNaviCompositeCustomAnnotation . |
| - (void) addCustomOverlay: | (id< AMapNaviCompositeOverlay >_Nonnull) | customOverlay |
在驾车导航界面添加自定义Overlay. 注意:每次退出导航之后,Overlay都会被清空. since 6.7.0
| customOverlay | 会被显示在驾车导航界面地图上, 此对象需遵守AMapNaviCompositeOverlay协议,否则无效, 具体参考官方Demo CustomOverlayCompositeViewController 类 . |
| - (void) dismissWithAnimated: | (BOOL) | animated |
退出导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效. since 5.5.0
| animated | 是否执行动画 |
| - (void) presentRoutePlanViewControllerWithOptions: | (AMapNaviCompositeUserConfig *_Nullable) | options |
通过present的方式显示导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效.
| options | 导航组件的配置类,参考 AMapNaviCompositeUserConfig . |
| - (void) removeAnnotation: | (AMapNaviCompositeCustomAnnotation *_Nonnull) | annotation |
移除驾车导航界面的自定义标注. since 5.5.0
| annotation | 具体参考 AMapNaviCompositeCustomAnnotation . |
| - (void) removeCustomOverlay: | (id< AMapNaviCompositeOverlay >_Nonnull) | customOverlay |
移除驾车导航界面的自定义Overlay. since 6.7.0
| customOverlay | 具体参考 AMapNaviCompositeOverlay . |
|
readwritenonatomicweak |
实现了 AMapNaviCompositeManagerDelegate 协议的类指针
|
readnonatomicassign |
当前选择的导航路径的信息,参考 AMapNaviRoute 类.
|
readnonatomicassign |
当前选择的导航路径的ID
|
readnonatomicassign |
路径规划后的所有路径ID,路径ID为 NSInteger 类型.
|
readnonatomicassign |
路径规划后的所有路径信息,参考 AMapNaviRoute 类.