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

导航界面自定义标注 since 5.5.0 More...

#import <AMapNaviCompositeAnnotation.h>

Inheritance diagram for AMapNaviCompositeCustomAnnotation:
<MAAnnotation>

Instance Methods

(id) - initWithCoordinate:view:
 初始化导航界面自定义标注. since 5.5.0
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用.
 

Properties

CLLocationCoordinate2D coordinate
 标注的中心坐标
 
NSInteger zIndex
 z值,大值在上,默认为0. 类似CALayer的zPosition
 
BOOL enable
 导航界面添加的自定义标注是否可以响应事件,默认为NO. since 7.5.0
 
NSString * identifier
 导航界面添加的自定义标注的复用view的标识,注意:如果两个标注有不同的图标,这个复用标识必须设置,否则会出现复用混乱的现象. since 8.0.0
 
- Properties inherited from <MAAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标
 
NSString * title
 annotation标题
 
NSString * subtitle
 annotation副标题
 
double altitude
 annotation海拔高度,单位米,默认0
 

Detailed Description

导航界面自定义标注 since 5.5.0

Method Documentation

◆ initWithCoordinate:view:

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

初始化导航界面自定义标注. since 5.5.0

Parameters
coordinate标注的中心坐标.
view会被显示在驾车导航界面的地图上. 如需调整view的相对位置,请修改view.frame.origin
Returns
id 自定义标注对象

Property Documentation

◆ coordinate

- (CLLocationCoordinate2D) coordinate
readwritenonatomicassign

标注的中心坐标

◆ enable

- (BOOL) enable
readwritenonatomicassign

导航界面添加的自定义标注是否可以响应事件,默认为NO. since 7.5.0

◆ identifier

- (NSString*) identifier
readwritenonatomiccopy

导航界面添加的自定义标注的复用view的标识,注意:如果两个标注有不同的图标,这个复用标识必须设置,否则会出现复用混乱的现象. since 8.0.0

◆ zIndex

- (NSInteger) zIndex
readwritenonatomicassign

z值,大值在上,默认为0. 类似CALayer的zPosition


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