TencentMapSDK_iOS_3D_v6.7.0

QAnnotationView.h
1 //
2 // QAnnotationView.h
3 // QMapKit
4 //
5 // Created by tabsong on 17/5/18.
6 // Copyright © 2017年 tencent. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import "QAnnotatioViewDefines.h"
11
12 @protocol QAnnotation;
13
19 @interface QAnnotationView : UIView
20
29 - (id)initWithAnnotation:(id <QAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
30
34 @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
35
39 - (void)prepareForReuse;
40
44 @property (nonatomic, strong) id <QAnnotation> annotation;
45
49 @property (nonatomic, assign) int zIndex;
50
54 @property (nonatomic, strong) UIImage *image;
55
60 @property (nonatomic, strong, readonly) UIImageView *innerImageView;
61
65 @property (nonatomic) CGPoint centerOffset;
66
70 @property (nonatomic) CGPoint calloutOffset;
71
75 @property (nonatomic, assign) QAnnotationViewCollisionType collisionType;
76
80 @property (nonatomic, assign) QAnnotationViewCollisionRelation collisionRelation;
81
85 @property (nonatomic, getter=isEnabled) BOOL enabled;
86
90 @property (nonatomic, getter=isSelected) BOOL selected;
91
98 - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
99
103 @property (nonatomic) BOOL canShowCallout;
104
108 @property (nonatomic, strong) UIView *customCalloutView;
109
113 @property (strong, nonatomic) UIView *leftCalloutAccessoryView;
114
118 @property (strong, nonatomic) UIView *rightCalloutAccessoryView;
119
123 @property (nonatomic, getter=isDraggable) BOOL draggable;
124
128 @property (nonatomic) QAnnotationViewDragState dragState;
129
136 - (void)setDragState:(QAnnotationViewDragState)newDragState animated:(BOOL)animated;
137
138
139 @end
QAnnotationView::selected
BOOL selected
是否处于选中状态
Definition: QAnnotationView.h:90
QAnnotationView::collisionRelation
QAnnotationViewCollisionRelation collisionRelation
AnnotationView上元素的碰撞关系
Definition: QAnnotationView.h:80
QAnnotationView::centerOffset
CGPoint centerOffset
默认情况下，annotationView的中心位于annotation的坐标位置，可以设置centerOffset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素
Definition: QAnnotationView.h:65
QAnnotationView::zIndex
int zIndex
z值, 决定了AnnotationView之间的压盖顺序: 值大的在上部. 默认为0. 被选中的无视zIndex会被置顶
Definition: QAnnotationView.h:49
QAnnotationView
annotation数据的内容展示View
Definition: QAnnotationView.h:20
QAnnotationView::dragState
QAnnotationViewDragState dragState
当前view拖动状态
Definition: QAnnotationView.h:128
QAnnotationView::image
UIImage * image
显示的image
Definition: QAnnotationView.h:54
QAnnotationView::reuseIdentifier
NSString * reuseIdentifier
复用标识
Definition: QAnnotationView.h:34
QAnnotationView::annotation
id< QAnnotation > annotation
关联的annotation
Definition: QAnnotationView.h:44
QAnnotationView::draggable
BOOL draggable
是否支持拖动
Definition: QAnnotationView.h:123
QAnnotationView::innerImageView
UIImageView * innerImageView
image 对应的 UIImageView
Definition: QAnnotationView.h:60
QAnnotation-p
该类为标注点的protocol，提供了标注类的基本信息函数
Definition: QAnnotation.h:16
QAnnotationView::canShowCallout
BOOL canShowCallout
设置是否可以显示callout,默认为NO
Definition: QAnnotationView.h:103
QAnnotationView::calloutOffset
CGPoint calloutOffset
默认情况下，弹出的气泡位于view正中上方，可以设置calloutOffset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素
Definition: QAnnotationView.h:70
QAnnotationView::collisionType
QAnnotationViewCollisionType collisionType
AnnotationView的碰撞类型
Definition: QAnnotationView.h:75
QAnnotationView::leftCalloutAccessoryView
UIView * leftCalloutAccessoryView
气泡左侧的view
Definition: QAnnotationView.h:113
QAnnotationView::enabled
BOOL enabled
默认为YES,当为NO时view忽略触摸事件
Definition: QAnnotationView.h:85
-[QAnnotationView prepareForReuse]
void prepareForReuse()
当从reuse队列里取出时被调用
QAnnotationView::rightCalloutAccessoryView
UIView * rightCalloutAccessoryView
气泡右侧的view
Definition: QAnnotationView.h:118
QAnnotationView::customCalloutView
UIView * customCalloutView
自定义callout.
Definition: QAnnotationView.h:108