FMGLAnnotationView
概述
标注视图
函数
-initWithReuseIdentifier:
初始化标注视图
PARAMETERS
参数 | 类型 | 说明 |
---|---|---|
reuseIdentifier | NSString | 标识 |
RETURN VALUE
instancetype
-setSelected: animated:
设为选中,子类重写,无法直接调用
PARAMETERS
参数 | 类型 | 说明 |
---|---|---|
selected | BOOL | 选中状态 |
animated | BOOL | 动画效果 |
RETURN VALUE
void
-setDragState: animated:
当dragState
属性改变时调用
PARAMETERS
参数 | 类型 | 说明 |
---|---|---|
dragState | FMGLAnnotationViewDragState | 拖动状态 |
animated | BOOL | 动画效果 |
RETURN VALUE
void
-prepareForReuse
删除视图时调用
PARAMETERS
参数 | 类型 | 说明 |
---|---|---|
无 | 无 | 无 |
RETURN VALUE
void
属性
annotation
视图关联的标注
声明
@property (nonatomic, readonly, nullable) id <FMGLAnnotation> annotation;
reuseIdentifier
复用标识
声明
@property (nonatomic, readonly, nullable) NSString *reuseIdentifier;
centerOffset
视图和坐标中心点的偏移
声明
@property (nonatomic) CGVector centerOffset;
flat
视角倾斜
声明
@property (nonatomic, assign, getter=isFlat) BOOL flat;
selected
视图选中
声明
@property (nonatomic, assign, getter=isSelected) BOOL selected;
enabled
视图是否可响应
声明
@property (nonatomic, assign, getter=isEnabled) BOOL enabled;
draggable
视图拖拽
声明
@property (nonatomic, assign, getter=isDraggable) BOOL draggable;
dragState
视图拖拽状态
声明
@property (nonatomic, readonly) FMGLAnnotationViewDragState dragState;
scalesWithViewingDistance
视图比例随视角距离变化
声明
@property (nonatomic, assign, getter=isScaledWithViewingDistance) BOOL scalesWithViewingDistance;