BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

BMKMultiNaviView.h
浏览该文件的文档.
1 //
2 // BMKMultiNaviView.h
3 // BaiduMapAPI_WalkNavi
4 //
5 // Created by zhaoxiangru on 2024/1/5.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import "BMKWalkCycleDefine.h"
11 #import "BMKAuthorizeServiceModel.h"
12 #import "BMKWalkCycleNavigationDisplayOption.h"
13
14 NS_ASSUME_NONNULL_BEGIN
15 @class BMKMapView;
16
18 @protocol BMKWalkCycleMultiNaviViewDelegate <NSObject>
20 - (void)multiNaviViewDidMoveToWindowOnBind;
22 - (void)multiNaviViewDidMoveToWindowUnBind;
23 @end
24
26 @interface BMKMultiNaviView : UIView
27 @property (nonatomic, weak) id <BMKWalkCycleMultiNaviViewDelegate> delegate;
29 @property (nonatomic, assign, readonly) BMKWalkCycleNavigationType naviType;
31 @property (nonatomic, copy) NSString *tagString;
33 @property (nonatomic, assign) float defaultNaviMapLevel;
35 @property (nonatomic, assign) BMKNaviMapRotateMode naviMapRotateMode;
37 @property (nonatomic, assign) BMKNaviMapOverlookingMode naviMapOverlookingMode;
38
40 @property (nonatomic, assign) BOOL naviMapViewAllStatus;
42 @property (nonatomic, assign) BOOL naviMapBrowseStatus;
44 @property (nonatomic, assign) UIEdgeInsets naviMapInsets;
45
47 @property (nonatomic, assign) CGPoint carPositionOffset;
48
50 @property (nonatomic, assign) BOOL showLogo;
51
53 @property (nonatomic, assign) float dpiScale;
54
56 - (BOOL)bindNaviDataSourceWithNaviType:(BMKWalkCycleNavigationType)naviType;
58 - (BMKMapView *)getNaviMapView;
60 - (void)onResume;
62 - (void)onPause;
64 - (void)onDestroy;
65
66 #pragma mark - 导航元素控制
67 - (void)setNaviDrawElementsShow:(BOOL)show elements:(NSArray *)elements;
76 - (void)updateNaviDrawItemDisplayOption:(BMKWalkCycleNaviDrawItemDisplayOption *)dispalyOption;
77 @end
78
79 NS_ASSUME_NONNULL_END
BMKMultiNaviView::naviMapViewAllStatus
BOOL naviMapViewAllStatus
设置导航是否全览状态，默认：NO 导航态
Definition: BMKMultiNaviView.h:40
-[BMKMultiNaviView onResume]
void onResume()
恢复导航地图实例。
-[BMKMultiNaviView getNaviMapView]
BMKMapView * getNaviMapView()
获取MapView
BMKMultiNaviView::naviMapInsets
UIEdgeInsets naviMapInsets
设置全览下路线展示区域相对地图的insets ，默认：{0,0,0,0}
Definition: BMKMultiNaviView.h:44
-[BMKWalkCycleMultiNaviViewDelegate-p multiNaviViewDidMoveToWindowOnBind]
void multiNaviViewDidMoveToWindowOnBind()
多实例导航视图绑定状态代理回调，视图didMoveToWindow时会根据授权状态回调,绑定
BMKWalkCycleNaviDrawItemDisplayOption
导航地图页面元素自定义样式
Definition: BMKWalkCycleNavigationDisplayOption.h:189
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition: BMKMapView.h:118
BMKMultiNaviView::dpiScale
float dpiScale
控制地图DPI缩放比，用于其他设备适配，默认1.0，since 6.6.6
Definition: BMKMultiNaviView.h:53
BMKMultiNaviView::tagString
NSString * tagString
导航地图唯一标识，默认为当前对象hash值的字符串
Definition: BMKMultiNaviView.h:31
BMKMultiNaviView::naviType
BMKWalkCycleNavigationType naviType
导航类型,默认步行
Definition: BMKMultiNaviView.h:29
-[BMKWalkCycleMultiNaviViewDelegate-p multiNaviViewDidMoveToWindowUnBind]
void multiNaviViewDidMoveToWindowUnBind()
多实例导航视图绑定状态代理回调，视图didMoveToWindow时会根据授权状态回调，解绑；请先调用授权接口授权或联系PM开通高级权限
BMKMultiNaviView::naviMapRotateMode
BMKNaviMapRotateMode naviMapRotateMode
设置导航地图旋转模式，默认：BMKNaviMapRotateModeRoute 路线朝上
Definition: BMKMultiNaviView.h:35
BMKWalkCycleDefine.h
BMKMultiNaviView::carPositionOffset
CGPoint carPositionOffset
小车XY偏移量,默认无效值(MAXFLOAT, MAXFLOAT），初始化引擎后设置，since 6.6.4
Definition: BMKMultiNaviView.h:47
BMKMultiNaviView::showLogo
BOOL showLogo
控制地图logo显示隐藏，默认显示，since 6.6.4
Definition: BMKMultiNaviView.h:50
BMKMultiNaviView::defaultNaviMapLevel
float defaultNaviMapLevel
设置默认比例尺，默认：17,范围：4～22
Definition: BMKMultiNaviView.h:33
BMKMultiNaviView::delegate
id< BMKWalkCycleMultiNaviViewDelegate > delegate
Definition: BMKMultiNaviView.h:27
-[BMKMultiNaviView onPause]
void onPause()
暂停导航地图实例。
BMKAuthorizeServiceModel.h
BMKMultiNaviView
多实例导航视图
Definition: BMKMultiNaviView.h:27
BMKMultiNaviView::naviMapOverlookingMode
BMKNaviMapOverlookingMode naviMapOverlookingMode
设置导航地图俯仰视角模式，默认：BMKNaviMapOverlookingMode2D 2d视角
Definition: BMKMultiNaviView.h:37
BMKMultiNaviView::naviMapBrowseStatus
BOOL naviMapBrowseStatus
设置导航是否浏览态，默认：NO 非浏览态
Definition: BMKMultiNaviView.h:42
-[BMKMultiNaviView onDestroy]
void onDestroy()
销毁导航地图实例内部持有（并解除绑定多实例导航数据源）。
BMKWalkCycleMultiNaviViewDelegate-p
多实例导航视图代理回调
Definition: BMKMultiNaviView.h:18