10 #import <UIKit/UIKit.h>
36 @property (nonatomic, assign) NSInteger
zIndex;
40 @property (nonatomic, strong) id <MAAnnotation>
annotation;
44 @property (nonatomic, strong) UIImage *
image;
48 @property (nonatomic, strong, readonly) UIImageView *
imageView;
64 @property (nonatomic, getter=isEnabled) BOOL
enabled;
72 @property (nonatomic, getter=isSelected) BOOL
selected;
88 @property (nonatomic, getter=isDraggable) BOOL
draggable;
106 - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
118 - (id)initWithAnnotation:(
id <
MAAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
MAAnnotationViewDragState
Definition: MAAnnotationView.h:16
@ MAAnnotationViewDragStateStarting
开始拖动 start dragging
Definition: MAAnnotationView.h:18
@ MAAnnotationViewDragStateEnding
拖动结束 end dragging
Definition: MAAnnotationView.h:21
@ MAAnnotationViewDragStateNone
静止状态 stationary state
Definition: MAAnnotationView.h:17
@ MAAnnotationViewDragStateDragging
拖动中 dragging
Definition: MAAnnotationView.h:19
@ MAAnnotationViewDragStateCanceling
取消拖动 cancel dragging
Definition: MAAnnotationView.h:20
Definition: MAAnnotationView.h:29
MAAnnotationViewDragState dragState
Definition: MAAnnotationView.h:92
NSInteger zIndex
Definition: MAAnnotationView.h:36
NSString * reuseIdentifier
Definition: MAAnnotationView.h:32
BOOL draggable
Definition: MAAnnotationView.h:88
UIImageView * imageView
Definition: MAAnnotationView.h:48
CGPoint centerOffset
Definition: MAAnnotationView.h:56
MACustomCalloutView * customCalloutView
Definition: MAAnnotationView.h:52
CGPoint calloutOffset
Definition: MAAnnotationView.h:60
UIView * rightCalloutAccessoryView
Definition: MAAnnotationView.h:84
UIView * leftCalloutAccessoryView
Definition: MAAnnotationView.h:80
BOOL canShowCallout
Definition: MAAnnotationView.h:76
BOOL highlighted
Definition: MAAnnotationView.h:68
UIImage * image
Definition: MAAnnotationView.h:44
BOOL selected
Definition: MAAnnotationView.h:72
BOOL canAdjustPositon
Definition: MAAnnotationView.h:96
void prepareForReuse()
当从reuse队列里取出时被调用, 子类重新必须调用super Called when taken out of the reuse queue, the subclass must call supe...
id< MAAnnotation > annotation
Definition: MAAnnotationView.h:40
BOOL enabled
Definition: MAAnnotationView.h:64
Definition: MACustomCalloutView.h:15
Definition: MAAnnotation.h:17