IndoorMapSDK
室内地图SDK参考文档
 全部  函数 变量 属性
OIMAnnotationView.h
1 //
2 // OIMAnnotationView.h
3 // OIMMapKitDemo
4 //
5 // Created by songjian on 13-1-7.
6 // Copyright (c) 2013年 songjian. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 
11 //typedef NS_ENUM(NSInteger, OIMAnnotationViewDragState)
12 //{
13 // OIMAnnotationViewDragStateNone = 0, ///< 静止状态
14 // OIMAnnotationViewDragStateStarting, ///< 开始拖动
15 // OIMAnnotationViewDragStateDragging, ///< 拖动中
16 // OIMAnnotationViewDragStateCanceling, ///< 取消拖动
17 // OIMAnnotationViewDragStateEnding ///< 拖动结束
18 //};
19 
20 @protocol OIMAnnotation;
21 
25 @interface OIMAnnotationView : UIView
26 
33 - (id)initWithAnnotation:(id<OIMAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
34 
38 @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
39 
43 - (void)prepareForReuse;
44 
48 @property (nonatomic, strong) id<OIMAnnotation> annotation;
49 
53 @property (nonatomic, strong) UIImage *image;
54 
58 @property (nonatomic) CGPoint centerOffset;
59 
63 @property (nonatomic) CGPoint calloutOffset;
64 
68 @property (nonatomic, getter=isEnabled) BOOL enabled;
69 
70 @property (nonatomic, getter=isHighlighted) BOOL highlighted;
71 
75 @property (nonatomic, getter=isSelected) BOOL selected;
76 - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
77 
78 //@property (nonatomic) BOOL canShowCallout;
79 //
81 // @brief 显示在气泡左侧的view
82 // */
83 //@property (strong, nonatomic) UIView *leftCalloutAccessoryView;
84 //
86 // @brief 显示在气泡右侧的view
87 // */
88 //@property (strong, nonatomic) UIView *rightCalloutAccessoryView;
89 //
91 // @brief 是否支持拖动
92 // */
93 //@property (nonatomic, getter=isDraggable) BOOL draggable NS_AVAILABLE(NA, 4_0);
94 //
96 // @brief 当前view的拖动状态
97 // */
98 //@property (nonatomic) OIMAnnotationViewDragState dragState NS_AVAILABLE(NA, 4_0);
99 //- (void)setDragState:(OIMAnnotationViewDragState)newDragState animated:(BOOL)animated NS_AVAILABLE(NA, 4_2);
100 
101 @end
NSString * reuseIdentifier
复用标识
Definition: OIMAnnotationView.h:38
CGPoint calloutOffset
默认情况下, 弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素
Definition: OIMAnnotationView.h:63
BOOL enabled
默认为YES,当为NO时view忽略触摸事件
Definition: OIMAnnotationView.h:68
UIImage * image
显示的image
Definition: OIMAnnotationView.h:53
CGPoint centerOffset
默认情况下, annotation view的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 ...
Definition: OIMAnnotationView.h:58
void prepareForReuse()
当从reuse队列里取出时被调用, 子类重新必须调用super.
标注view
Definition: OIMAnnotationView.h:25
BOOL selected
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法。
Definition: OIMAnnotationView.h:75
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: OIMAnnotation.h:17