|
TencentMapSDK_iOS_3D_v6.4.0
|
提供类似大头针效果的annotationView 更多...
#include <QPinAnnotationView.h>
属性 | |
| QPinAnnotationColor | pinColor |
| 大头针的颜色 | |
| BOOL | animatesDrop |
| 动画效果 | |
属性 继承自 QAnnotationView | |
| NSString * | reuseIdentifier |
| 复用标识 | |
| id< QAnnotation > | annotation |
| 关联的annotation | |
| int | zIndex |
| z值, 决定了AnnotationView之间的压盖顺序: 值大的在上部. 默认为0. 被选中的无视zIndex会被置顶 | |
| UIImage * | image |
| 显示的image | |
| UIImageView * | innerImageView |
| image 对应的 UIImageView | |
| CGPoint | centerOffset |
| 默认情况下,annotationView的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
| CGPoint | calloutOffset |
| 默认情况下,弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
| QAnnotationViewCollisionType | collisionType |
| AnnotationView的碰撞类型 | |
| QAnnotationViewCollisionRelation | collisionRelation |
| AnnotationView上元素的碰撞关系 | |
| BOOL | enabled |
| 默认为YES,当为NO时view忽略触摸事件 | |
| BOOL | selected |
| 是否处于选中状态 | |
| BOOL | canShowCallout |
| 设置是否可以显示callout,默认为NO | |
| UIView * | customCalloutView |
| 自定义callout. | |
| UIView * | leftCalloutAccessoryView |
| 气泡左侧的view | |
| UIView * | rightCalloutAccessoryView |
| 气泡右侧的view | |
| BOOL | draggable |
| 是否支持拖动 | |
| QAnnotationViewDragState | dragState |
| 当前view拖动状态 | |
额外继承的成员函数 | |
实例方法 继承自 QAnnotationView | |
| (id) | - initWithAnnotation:reuseIdentifier: |
| 初始化并返回一个annotationView | |
| (void) | - prepareForReuse |
| 当从reuse队列里取出时被调用 | |
| (void) | - setSelected:animated: |
| 设置是否处于选中状态 | |
| (void) | - setDragState:animated: |
| 设置当前view拖动状态 | |
| (BOOL) | - addQAnnotationViewCollisionChild: |
| 添加碰撞子Marker,添加的元素需遵循QAnnotationViewCollisionDelegate协议 | |
| (BOOL) | - removeQAnnotationViewCollisionChild: |
| 移除碰撞子marker,元素需遵循QAnnotationViewCollisionDelegate协议 | |
| (void) | - updateQAnnotationViewCollisionChild: |
| 更新子Marker碰撞,元素需遵循QAnnotationViewCollisionDelegate协议 | |
| (void) | - setQAnnotationViewCollisionMainView: |
| 设置碰撞主marker的数据来源 | |
提供类似大头针效果的annotationView