高德地图SDK(导航)  V11.1.000
AMapNaviCompositeCustomAnnotation Class Reference

导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0 More...

#import <AMapNaviCompositeAnnotation.h>

Inheritance diagram for AMapNaviCompositeCustomAnnotation:
<MAAnnotation>

Instance Methods

(id) - initWithCoordinate:view:
 初始化导航界面自定义标注. since 5.5.0 Custom annotations initialized in the navigation interface will be displayed More...
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用. Set the coordinates of the annotation, which will be called during dragging More...
 

Properties

CLLocationCoordinate2D coordinate
 标注的中心坐标 The center coordinate of the annotation More...
 
NSInteger zIndex
 
BOOL enable
 
NSString * identifier
 
- Properties inherited from <MAAnnotation>
CLLocationCoordinate2D coordinate
 
NSString * title
 
NSString * subtitle
 
double altitude
 

Detailed Description

导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0

Method Documentation

◆ initWithCoordinate:view:

- (id) initWithCoordinate: (CLLocationCoordinate2D)  coordinate
view: (UIView *)  view 

初始化导航界面自定义标注. since 5.5.0 Custom annotations initialized in the navigation interface will be displayed

Parameters
coordinate标注的中心坐标. The center coordinate of the annotation
view会被显示在驾车导航界面的地图上. 如需调整view的相对位置,请修改view.frame.origin On the map of the driving navigation interface. To adjust the relative position of the view, please modify view.frame.origin
Returns
id 自定义标注对象 ID custom annotation object

Property Documentation

◆ coordinate

- (CLLocationCoordinate2D) coordinate
readwritenonatomicassign

标注的中心坐标 The center coordinate of the annotation

◆ enable

- (BOOL) enable
readwritenonatomicassign

导航界面添加的自定义标注是否可以响应事件,默认为NO. since 7.5.0 Whether the custom annotation added in the navigation interface can respond to events, default is NO.

◆ identifier

- (NSString*) identifier
readwritenonatomiccopy

导航界面添加的自定义标注的复用view的标识,注意:如果两个标注有不同的图标,这个复用标识必须设置,否则会出现复用混乱的现象. since 8.0.0 The reuse identifier of the custom annotation view added to the navigation interface. Note: If two annotations have different icons, this reuse identifier must be set, otherwise reuse confusion will occur.

◆ zIndex

- (NSInteger) zIndex
readwritenonatomicassign

z值,大值在上,默认为0. 类似CALayer的zPosition Z-value, higher values are on top, default is 0. Similar to CALayer's zPosition


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