iOS高德地图SDK(3D) V11.2.0001

MAAnnotationView.h
Go to the documentation of this file.
1 //
2 // MAAnnotationView.h
3 // MAMapKitDemo
4 //
5 // Created by songjian on 13-1-7.
6 // Copyright © 2016 Amap. All rights reserved.
7 //
8
9 #import "MAConfig.h"
10 #import <UIKit/UIKit.h>
11 #import "MACustomCalloutView.h"
12
15 typedef NS_ENUM(NSInteger, MAAnnotationViewDragState)
16 {
17 MAAnnotationViewDragStateNone = 0,
18 MAAnnotationViewDragStateStarting,
19 MAAnnotationViewDragStateDragging,
20 MAAnnotationViewDragStateCanceling,
21 MAAnnotationViewDragStateEnding
22 };
23
24 @protocol MAAnnotation;
25
28 @interface MAAnnotationView : UIView
29
32 @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
33
36 @property (nonatomic, assign) NSInteger zIndex;
37
40 @property (nonatomic, strong) id <MAAnnotation> annotation;
41
44 @property (nonatomic, strong) UIImage *image;
45
48 @property (nonatomic, strong, readonly) UIImageView *imageView;
49
52 @property (nonatomic, strong) MACustomCalloutView *customCalloutView;
53
56 @property (nonatomic) CGPoint centerOffset;
57
60 @property (nonatomic) CGPoint calloutOffset;
61
64 @property (nonatomic, getter=isEnabled) BOOL enabled;
65
68 @property (nonatomic, getter=isHighlighted) BOOL highlighted;
69
72 @property (nonatomic, getter=isSelected) BOOL selected;
73
76 @property (nonatomic) BOOL canShowCallout;
77
80 @property (nonatomic, strong) UIView *leftCalloutAccessoryView;
81
84 @property (nonatomic, strong) UIView *rightCalloutAccessoryView;
85
88 @property (nonatomic, getter=isDraggable) BOOL draggable;
89
92 @property (nonatomic) MAAnnotationViewDragState dragState;
93
96 @property (nonatomic) BOOL canAdjustPositon;
97
100 @property (nonatomic) BOOL isOpenCollisionDetection;
101
110 - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
111
122 - (id)initWithAnnotation:(id <MAAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
123
128 - (void)prepareForReuse;
129
138 - (void)setDragState:(MAAnnotationViewDragState)newDragState animated:(BOOL)animated;
139
140 @end
MAAnnotationViewDragState
MAAnnotationViewDragState
Definition: MAAnnotationView.h:16
MAAnnotationViewDragStateStarting
@ MAAnnotationViewDragStateStarting
开始拖动 start dragging
Definition: MAAnnotationView.h:18
MAAnnotationViewDragStateEnding
@ MAAnnotationViewDragStateEnding
拖动结束 end dragging
Definition: MAAnnotationView.h:21
MAAnnotationViewDragStateNone
@ MAAnnotationViewDragStateNone
静止状态 stationary state
Definition: MAAnnotationView.h:17
MAAnnotationViewDragStateDragging
@ MAAnnotationViewDragStateDragging
拖动中 dragging
Definition: MAAnnotationView.h:19
MAAnnotationViewDragStateCanceling
@ MAAnnotationViewDragStateCanceling
取消拖动 cancel dragging
Definition: MAAnnotationView.h:20
MAConfig.h
MACustomCalloutView.h
MAAnnotationView
Definition: MAAnnotationView.h:29
MAAnnotationView::dragState
MAAnnotationViewDragState dragState
Definition: MAAnnotationView.h:92
MAAnnotationView::zIndex
NSInteger zIndex
Definition: MAAnnotationView.h:36
MAAnnotationView::reuseIdentifier
NSString * reuseIdentifier
Definition: MAAnnotationView.h:32
MAAnnotationView::draggable
BOOL draggable
Definition: MAAnnotationView.h:88
MAAnnotationView::imageView
UIImageView * imageView
Definition: MAAnnotationView.h:48
MAAnnotationView::centerOffset
CGPoint centerOffset
Definition: MAAnnotationView.h:56
MAAnnotationView::isOpenCollisionDetection
BOOL isOpenCollisionDetection
Definition: MAAnnotationView.h:100
MAAnnotationView::customCalloutView
MACustomCalloutView * customCalloutView
Definition: MAAnnotationView.h:52
MAAnnotationView::calloutOffset
CGPoint calloutOffset
Definition: MAAnnotationView.h:60
MAAnnotationView::rightCalloutAccessoryView
UIView * rightCalloutAccessoryView
Definition: MAAnnotationView.h:84
MAAnnotationView::leftCalloutAccessoryView
UIView * leftCalloutAccessoryView
Definition: MAAnnotationView.h:80
MAAnnotationView::canShowCallout
BOOL canShowCallout
Definition: MAAnnotationView.h:76
MAAnnotationView::highlighted
BOOL highlighted
Definition: MAAnnotationView.h:68
MAAnnotationView::image
UIImage * image
Definition: MAAnnotationView.h:44
MAAnnotationView::selected
BOOL selected
Definition: MAAnnotationView.h:72
MAAnnotationView::canAdjustPositon
BOOL canAdjustPositon
Definition: MAAnnotationView.h:96
-[MAAnnotationView prepareForReuse]
void prepareForReuse()
当从reuse队列里取出时被调用, 子类重新必须调用super Called when taken out of the reuse queue, the subclass must call supe...
MAAnnotationView::annotation
id< MAAnnotation > annotation
Definition: MAAnnotationView.h:40
MAAnnotationView::enabled
BOOL enabled
Definition: MAAnnotationView.h:64
MACustomCalloutView
Definition: MACustomCalloutView.h:15
MAAnnotation-p
Definition: MAAnnotation.h:17
© 2017 高德信息技术有限公司 版权所有，保留所有权利。