高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
AMapNaviCompositeManager Class Reference

导航组件类 since 5.1.0 注意:AMapNaviCompositeManager 内部使用了单例 [AMapNaviDriveManager sharedInstance] More...

#import <AMapNaviCompositeManager.h>

Inheritance diagram for AMapNaviCompositeManager:

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< AMapNaviCompositeManagerDelegatedelegate
 实现了 AMapNaviCompositeManagerDelegate 协议的类指针
 
NSInteger naviRouteID
 当前选择的导航路径的ID
 
AMapNaviRoutenaviRoute
 当前选择的导航路径的信息,参考 AMapNaviRoute 类.
 
NSArray< NSNumber * > * naviRouteIDs
 路径规划后的所有路径ID,路径ID为 NSInteger 类型.
 
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes
 路径规划后的所有路径信息,参考 AMapNaviRoute 类.
 

Detailed Description

导航组件类 since 5.1.0 注意:AMapNaviCompositeManager 内部使用了单例 [AMapNaviDriveManager sharedInstance]

Method Documentation

◆ addAnnotation:

- (void) addAnnotation: (AMapNaviCompositeCustomAnnotation *_Nonnull)  annotation

在驾车导航界面添加自定义标注. 注意:每次退出导航之后,标注都会被清空. since 5.5.0

Parameters
annotation会被显示在驾车导航界面地图上, 具体参考 AMapNaviCompositeCustomAnnotation .

◆ addCustomOverlay:

- (void) addCustomOverlay: (id< AMapNaviCompositeOverlay >_Nonnull)  customOverlay

在驾车导航界面添加自定义Overlay. 注意:每次退出导航之后,Overlay都会被清空. since 6.7.0

Parameters
customOverlay会被显示在驾车导航界面地图上, 此对象需遵守AMapNaviCompositeOverlay协议,否则无效, 具体参考官方Demo CustomOverlayCompositeViewController 类 .

◆ dismissWithAnimated:

- (void) dismissWithAnimated: (BOOL)  animated

退出导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效. since 5.5.0

Parameters
animated是否执行动画

◆ presentRoutePlanViewControllerWithOptions:

- (void) presentRoutePlanViewControllerWithOptions: (AMapNaviCompositeUserConfig *_Nullable)  options

通过present的方式显示导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效.

Parameters
options导航组件的配置类,参考 AMapNaviCompositeUserConfig .

◆ removeAnnotation:

- (void) removeAnnotation: (AMapNaviCompositeCustomAnnotation *_Nonnull)  annotation

移除驾车导航界面的自定义标注. since 5.5.0

Parameters
annotation具体参考 AMapNaviCompositeCustomAnnotation .

◆ removeCustomOverlay:

- (void) removeCustomOverlay: (id< AMapNaviCompositeOverlay >_Nonnull)  customOverlay

移除驾车导航界面的自定义Overlay. since 6.7.0

Parameters
customOverlay具体参考 AMapNaviCompositeOverlay .

Property Documentation

◆ delegate

- (id<AMapNaviCompositeManagerDelegate>) delegate
readwritenonatomicweak

实现了 AMapNaviCompositeManagerDelegate 协议的类指针

◆ naviRoute

- (AMapNaviRoute*) naviRoute
readnonatomicassign

当前选择的导航路径的信息,参考 AMapNaviRoute 类.

◆ naviRouteID

- (NSInteger) naviRouteID
readnonatomicassign

当前选择的导航路径的ID

◆ naviRouteIDs

- (NSArray<NSNumber *>*) naviRouteIDs
readnonatomicassign

路径规划后的所有路径ID,路径ID为 NSInteger 类型.

◆ naviRoutes

- (NSDictionary<NSNumber *, AMapNaviRoute *>*) naviRoutes
readnonatomicassign

路径规划后的所有路径信息,参考 AMapNaviRoute 类.


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