BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKAnnotationView.h
浏览该文件的文档.
1/*
2 * BMKAnnotationView.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8
9#import <UIKit/UIKit.h>
10#import "BMKActionPaopaoView.h"
11
12#if __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED
13
14 enum {
15 BMKAnnotationViewDragStateNone = 0,
16 BMKAnnotationViewDragStateStarting,
17 BMKAnnotationViewDragStateDragging,
18 BMKAnnotationViewDragStateCanceling,
19 BMKAnnotationViewDragStateEnding
20};
21
22 typedef NSUInteger BMKAnnotationViewDragState;
23
24#endif
25
26 typedef float BMKFeatureDisplayPriority;
28 static const BMKFeatureDisplayPriority BMKFeatureDisplayPriorityDefaultHigh = 750;
30 static const BMKFeatureDisplayPriority BMKFeatureDisplayPriorityDefaultMiddle = 500;
32 static const BMKFeatureDisplayPriority BMKFeatureDisplayPriorityDefaultLow = 250;
33
34@class BMKAnnotationViewInternal;
35@protocol BMKAnnotation;
36@class BMKMapView;
37@class BMKMapViewInternal;
38
42@interface BMKAnnotationView : UIView
43{
44@private
45 BOOL _enabled3D;
46 CGPoint startPoint;
47}
48
53- (instancetype)initWithAnnotation:(id <BMKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
54
56@property (nonatomic, readonly) NSString *reuseIdentifier;
58@property (nonatomic, strong) BMKActionPaopaoView *paopaoView;
59
61- (void)prepareForReuse;
62
64@property (nonatomic, strong) id <BMKAnnotation> annotation;
65
67@property (nonatomic, strong) UIImage *image;
68
70@property (nonatomic, assign) CGPoint centerOffset;
71
73@property (nonatomic, assign) CGPoint calloutOffset;
74
76@property (nonatomic) BOOL enabled3D;
77
79@property (nonatomic, getter=isEnabled) BOOL enabled;
80
82@property (nonatomic, getter=isSelected) BOOL selected;
83
88- (void)setSelected:(BOOL)selected animated:(BOOL)animated;
89
91@property (nonatomic, assign) BOOL canShowCallout;
92
94@property (strong, nonatomic) UIView *leftCalloutAccessoryView;
95
97@property (strong, nonatomic) UIView *rightCalloutAccessoryView;
98
100@property (nonatomic, assign, getter=isDraggable) BOOL draggable __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_2);
101
103@property (nonatomic, assign) BMKAnnotationViewDragState dragState __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_2);
104
106@property (nonatomic, assign) BOOL hidePaopaoWhenSingleTapOnMap;
107
109@property (nonatomic, assign) BOOL hidePaopaoWhenDoubleTapOnMap;
110
112@property (nonatomic, assign) BOOL hidePaopaoWhenTwoFingersTapOnMap;
113
115@property (nonatomic, assign) BOOL hidePaopaoWhenSelectOthers;
116
118@property (nonatomic, assign) BOOL hidePaopaoWhenDrag;
119
121@property (nonatomic, assign) BOOL hidePaopaoWhenDragOthers;
122
126@property (nonatomic, assign) BMKFeatureDisplayPriority displayPriority;
127
129@property (nonatomic, assign) float displayMaxLevel;
130
132@property (nonatomic, assign) float displayMinLevel;
133
135@property (nonatomic, assign) BOOL isOpenCollisionDetection;
137@property (nonatomic, assign) BOOL isOpenCollisionDetectionWithPaoPaoView;
138
141@property (nonatomic, assign) NSInteger collisionDetectionPriority;
142
144@property (nonatomic, assign) BOOL isForceDisplay;
145
147@property (nonatomic, assign) BOOL isOpenCollisionDetectionWithMapPOI;
148@end
BMKActionPaopaoView.h
BMKAnnotationViewDragStateNone
@ BMKAnnotationViewDragStateNone
静止状态.
Definition BMKAnnotationView.h:15
BMKAnnotationViewDragStateEnding
@ BMKAnnotationViewDragStateEnding
拖动结束
Definition BMKAnnotationView.h:19
BMKAnnotationViewDragStateCanceling
@ BMKAnnotationViewDragStateCanceling
取消拖动
Definition BMKAnnotationView.h:18
BMKAnnotationViewDragStateStarting
@ BMKAnnotationViewDragStateStarting
开始拖动
Definition BMKAnnotationView.h:16
BMKAnnotationViewDragStateDragging
@ BMKAnnotationViewDragStateDragging
拖动中
Definition BMKAnnotationView.h:17
BMKFeatureDisplayPriority
float BMKFeatureDisplayPriority
Definition BMKAnnotationView.h:26
BMKAnnotationViewDragState
NSUInteger BMKAnnotationViewDragState
Definition BMKAnnotationView.h:22
BMKActionPaopaoView
Definition BMKActionPaopaoView.h:15
BMKAnnotationView
Definition BMKAnnotationView.h:43
-[BMKAnnotationView __OSX_AVAILABLE_STARTING]
BOOL draggable __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_2)
当设为YES并实现了setCoordinate:方法时，支持将view在地图上拖动, iOS 3.2以后支持
-[BMKAnnotationView __OSX_AVAILABLE_STARTING]
BMKAnnotationViewDragState dragState __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_2)
当前view的拖动状态, iOS 3.2以后支持
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition BMKMapView.h:118