9#import <QuartzCore/QuartzCore.h>
10#import <CoreLocation/CLLocation.h>
15NS_ASSUME_NONNULL_BEGIN
17typedef NS_ENUM (NSInteger, BMKRoutePassedDisplayMode) {
18 BMKRoutePassedDisplayModeNone,
19 BMKRoutePassedDisplayModeErased,
20 BMKRoutePassedDisplayModeGrayed
24typedef NS_ENUM (NSInteger, BMKViaPointPassedDisplayMode) {
25 BMKViaPointPassedDisplayModeNone,
26 BMKViaPointPassedDisplayModeErased,
27 BMKViaPointPassedDisplayModeGrayed
33@property (nonatomic, assign) CLLocationCoordinate2D
location;
49@property (nonatomic, strong, nullable) NSArray<NSValue *> *routeInfo;
51@property (nonatomic, strong, nullable) NSArray<NSNumber *> *trafficInfo;
57@property (nonatomic, assign) CLLocationCoordinate2D location;
59@property (nonatomic, assign) BOOL isPassed;
62@protocol BMKBackgroundNavigationViewDataSource <NSObject>
69@property (nonatomic, weak) id<BMKBackgroundNavigationViewDataSource> dataSource;
74@property (nonatomic, assign) BOOL needDrawGuideLine;
76@property (nonatomic, strong) UIColor *guideLineColor;
78@property (nonatomic, assign) CGFloat guideLineWidth;
81@property (nonatomic, assign) BOOL needDrawStartPoint;
83@property (nonatomic, assign) CLLocationCoordinate2D startPoint;
85@property (nonatomic, strong, nullable) UIImage *startPointIcon;
87@property (nonatomic, assign) CGSize startPointIconSize;
89@property (nonatomic, assign) CGPoint startPointIconOffset;
92@property (nonatomic, assign) BOOL needDrawViaPoint;
94@property (nonatomic, assign) BMKViaPointPassedDisplayMode viaPointPassedDisplayMode;
96@property (nonatomic, copy, nullable) NSArray<BMKNaviViaPointInfo *> *viaPoints;
98@property (nonatomic, strong, nullable) UIImage *viaPointIcon;
100@property (nonatomic, strong, nullable) UIImage *viaPassedPointIcon;
102@property (nonatomic, assign) CGSize viaPointIconSize;
104@property (nonatomic, assign) CGPoint viaPointIconOffset;
107@property (nonatomic, assign) BOOL needDrawEndPoint;
109@property (nonatomic, assign) CLLocationCoordinate2D endPoint;
111@property (nonatomic, strong, nullable) UIImage *endPointIcon;
113@property (nonatomic, assign) CGSize endPointIconSize;
115@property (nonatomic, assign) CGPoint endPointIconOffset;
118@property (nonatomic, strong, nullable) UIImage *navigationIcon;
120@property (nonatomic, assign) CGSize navigationIconSize;
122@property (nonatomic, assign) BOOL needFllowPhoneHeading;
125@property (nonatomic, assign) BOOL needDrawCompass;
127@property (nonatomic, strong, nullable) UIImage *compassIcon;
129@property (nonatomic, assign) CGSize compassIconSize;
132@property (nonatomic, strong) UIColor *routeColor;
134@property (nonatomic, assign) CGFloat lineWidth;
136@property (nonatomic, assign) BMKRoutePassedDisplayMode routePassedDisplayMode;
138@property (nonatomic, strong) UIColor *routePassedColor;
140@property (nonatomic, strong) NSArray<UIColor *> *trafficColor;
148- (void)renderWithMapStatus:(
BMKMapStatus *)mapstatus enable3D:(BOOL)enable3D fitScale:(CGFloat)fitScale mapScreenExtOffset:(CGPoint)mapScreenExtOffset;
NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, BMKRoutePassedDisplayMode)
Definition BMKBackgroundNavigationView.h:17
Definition BMKBackgroundNavigationView.h:68
此类表示地图状态信息
Definition BMKMapStatus.h:16
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition BMKMapView.h:108
导航(小车)当前位置信息
Definition BMKBackgroundNavigationView.h:32
CGFloat directionRoute
当前位置路线方向
Definition BMKBackgroundNavigationView.h:39
NSInteger shapeIndex
当前位置的路线形状点索引,对应BMKNaviRouteInfo的routeInfo数组
Definition BMKBackgroundNavigationView.h:41
CLLocationCoordinate2D locationBindRoute
当前绑路后位置经纬度
Definition BMKBackgroundNavigationView.h:35
CLLocationCoordinate2D location
当前位置经纬度
Definition BMKBackgroundNavigationView.h:33
BOOL isFaraway
当前是否偏航(远离路线)
Definition BMKBackgroundNavigationView.h:43
CGFloat direction
当前位置方向
Definition BMKBackgroundNavigationView.h:37
路线信息
Definition BMKBackgroundNavigationView.h:48
途径点信息
Definition BMKBackgroundNavigationView.h:56