百度导航SDK for iOS类参考
 All Classes Functions Properties
BNMapViewManagerProtocol.h
1 //
2 // BNMapViewInterface.h
3 //
4 //
5 // Created by chenxintao on 2017/11/21.
6 //
7 
8 #ifndef BNMapViewInterface_h
9 #define BNMapViewInterface_h
10 #import <Foundation/Foundation.h>
11 
12 @protocol BNMapViewManagerDelegate;
13 
14 @interface BNMapViewStatus : NSObject
15 
16 //地图中心
17 @property (strong, nonatomic) BNPosition* center;
18 
19 //比例尺
20 @property (assign, nonatomic) double level;
21 
22 //旋转角
23 @property (assign, nonatomic) double rotation;
24 
25 //仰角
26 @property (assign, nonatomic) double overlooking;
27 
28 //中心偏移值
29 @property (assign, nonatomic) CGPoint offset;
30 
31 @end
32 
33 //地图的view,其他的接口待定
35 
36 @property (nonatomic, weak) id<BNMapViewManagerDelegate>delegate;
37 
43 - (UIView*)getMapView;
44 
50 - (UIView*)logoView;
51 
57 - (void)setMapViewOffset:(CGPoint)offset animated:(BOOL)animated;
58 
64 - (void)setMapViewStatus:(BNMapViewStatus*)mapViewStatus animated:(BOOL)animated;
65 
72 
74 -(BOOL)zoomIn;
75 
77 -(BOOL)zoomOut;
78 
79 @end
80 
81 @protocol BNMapViewManagerDelegate <NSObject>
82 
88 - (void)onHandleMapLevelChange:(NSInteger)level;
89 
90 @end
91 
92 #endif /* BNMapViewInterface_h */
Definition: BNMapViewManagerProtocol.h:81
BNMapViewStatus * getMapViewStatus()
Definition: BNMapViewManagerProtocol.h:14
Definition: BNMapViewManagerProtocol.h:34
BOOL zoomOut()
缩小地图,返回YES表示最小比例尺,返回NO表示不是最小比例尺
Definition: BNRoutePlanModel.h:28
BOOL zoomIn()
放大地图, 返回YES表示最大比例尺,返回NO表示不是最大比例尺