TencentMapSDK_iOS_3D_v6.8.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
annotation数据的内容展示View
定义 QAnnotationView.h:20
QAnnotationView::leftCalloutAccessoryView
UIView * leftCalloutAccessoryView
气泡左侧的view
定义 QAnnotationView.h:113
QAnnotationView::dragState
QAnnotationViewDragState dragState
当前view拖动状态
定义 QAnnotationView.h:128
QAnnotationView::collisionRelation
QAnnotationViewCollisionRelation collisionRelation
AnnotationView上元素的碰撞关系
定义 QAnnotationView.h:80
QAnnotationView::selected
BOOL selected
是否处于选中状态
定义 QAnnotationView.h:90
QAnnotationView::centerOffset
CGPoint centerOffset
默认情况下，annotationView的中心位于annotation的坐标位置，可以设置centerOffset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素
定义 QAnnotationView.h:65
QAnnotationView::draggable
BOOL draggable
是否支持拖动
定义 QAnnotationView.h:123
QAnnotationView::canShowCallout
BOOL canShowCallout
设置是否可以显示callout,默认为NO
定义 QAnnotationView.h:103
QAnnotationView::calloutOffset
CGPoint calloutOffset
默认情况下，弹出的气泡位于view正中上方，可以设置calloutOffset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素
定义 QAnnotationView.h:70
QAnnotationView::image
UIImage * image
显示的image
定义 QAnnotationView.h:54
QAnnotationView::rightCalloutAccessoryView
UIView * rightCalloutAccessoryView
气泡右侧的view
定义 QAnnotationView.h:118
-[QAnnotationView prepareForReuse]
void prepareForReuse()
当从reuse队列里取出时被调用
QAnnotationView::collisionType
QAnnotationViewCollisionType collisionType
AnnotationView的碰撞类型
定义 QAnnotationView.h:75
QAnnotationView::customCalloutView
UIView * customCalloutView
自定义callout.
定义 QAnnotationView.h:108
QAnnotationView::enabled
BOOL enabled
默认为YES,当为NO时view忽略触摸事件
定义 QAnnotationView.h:85
QAnnotationView::zIndex
int zIndex
z值, 决定了AnnotationView之间的压盖顺序: 值大的在上部. 默认为0. 被选中的无视zIndex会被置顶
定义 QAnnotationView.h:49
QAnnotationView::innerImageView
UIImageView * innerImageView
image 对应的 UIImageView
定义 QAnnotationView.h:60
QAnnotationView::reuseIdentifier
NSString * reuseIdentifier
复用标识
定义 QAnnotationView.h:34
QAnnotationView::annotation
id< QAnnotation > annotation
关联的annotation
定义 QAnnotationView.h:44