TencentMapSDK_iOS_3D_v1.3.3
|
该类为标注点的view 更多...
#import <QAnnotationView.h>
构造函数 | |
(id) | - initWithAnnotation:reuseIdentifier: |
初始化并返回一个annotationView 更多... | |
(void) | - prepareForReuse |
当从reuse队列里取出时被调用 | |
(void) | - setSelected:animated: |
设置是否处于选中状态 更多... | |
(void) | - setDragState:animated: |
设置当前view拖动状态 更多... | |
属性 | |
NSString * | reuseIdentifier |
复用标识 | |
id< QAnnotation > | annotation |
关联的annotation | |
UIImage * | image |
显示的image | |
CGPoint | centerOffset |
默认情况下,annotationView的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
CGPoint | calloutOffset |
默认情况下,弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
BOOL | enabled |
默认为YES,当为NO时view忽略触摸事件 | |
BOOL | highlighted |
annotationView是否突出显示(一般不需要手动设置) | |
BOOL | selected |
是否处于选中状态 | |
BOOL | canShowCallout |
设置是否可以显示callout,默认为NO | |
UIView * | leftCalloutAccessoryView |
气泡左侧的view | |
UIView * | rightCalloutAccessoryView |
气泡右侧的view | |
BOOL | draggable |
是否支持拖动 | |
QAnnotationViewDragState | dragState |
当前view拖动状态 | |
该类为标注点的view
- (id) initWithAnnotation: | (id< QAnnotation >) | annotation | |
reuseIdentifier: | (NSString *) | reuseIdentifier | |
初始化并返回一个annotationView
annotation | 关联的annotation对象 |
reuseIdentifier | 如果要复用view,传入一个字符串,否则设为nil,建议传入 |
- (void) setDragState: | (QAnnotationViewDragState) | newDragState | |
animated: | (BOOL) | animated | |
设置当前view拖动状态
newDragState | 新拖动状态 |
animated | 是否开启动画 |
- (void) setSelected: | (BOOL) | selected | |
animated: | (BOOL) | animated | |
设置是否处于选中状态
selected | 是否选中 |
animated | 是否开启动画 |