BaiduMap_IOSSDK_v7.2.0_Docs 7.2.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, copy, readonly) NSString *multiTagString;
35 @property (nonatomic, assign) float defaultNaviMapLevel;
37 @property (nonatomic, assign) BMKNaviMapRotateMode naviMapRotateMode;
39 @property (nonatomic, assign) BMKNaviMapOverlookingMode naviMapOverlookingMode;
40
42 @property (nonatomic, assign) BOOL naviMapViewAllStatus;
44 @property (nonatomic, assign) BOOL naviMapBrowseStatus;
46 @property (nonatomic, assign) UIEdgeInsets naviMapInsets;
47
49 @property (nonatomic, assign) CGPoint carPositionOffset;
50
52 @property (nonatomic, assign) BOOL showLogo;
53
55 @property (nonatomic, assign) float dpiScale;
56
58 - (BOOL)bindNaviDataSourceWithNaviType:(BMKWalkCycleNavigationType)naviType;
60 - (BMKMapView *)getNaviMapView;
62 - (void)onResume;
64 - (void)onPause;
66 - (void)onDestroy;
67
68 #pragma mark - 导航元素控制
69 - (void)setNaviDrawElementsShow:(BOOL)show elements:(NSArray *)elements;
78 - (void)updateNaviDrawItemDisplayOption:(BMKWalkCycleNaviDrawItemDisplayOption *)dispalyOption;
79 @end
80
81 NS_ASSUME_NONNULL_END
BMKMultiNaviView::naviMapViewAllStatus
BOOL naviMapViewAllStatus
设置导航是否全览状态，默认：NO 导航态
Definition: BMKMultiNaviView.h:42
-[BMKMultiNaviView onResume]
void onResume()
恢复导航地图实例。
-[BMKMultiNaviView getNaviMapView]
BMKMapView * getNaviMapView()
获取MapView
BMKMultiNaviView::naviMapInsets
UIEdgeInsets naviMapInsets
设置全览下路线展示区域相对地图的insets ，默认：{0,0,0,0}
Definition: BMKMultiNaviView.h:46
-[BMKWalkCycleMultiNaviViewDelegate-p multiNaviViewDidMoveToWindowOnBind]
void multiNaviViewDidMoveToWindowOnBind()
多实例导航视图绑定状态代理回调，视图didMoveToWindow时会根据授权状态回调,绑定
BMKWalkCycleNaviDrawItemDisplayOption
导航地图页面元素自定义样式
Definition: BMKWalkCycleNavigationDisplayOption.h:189
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition: BMKMapView.h:132
BMKMultiNaviView::dpiScale
float dpiScale
控制地图DPI缩放比，用于其他设备适配，默认1.0，since 6.6.6
Definition: BMKMultiNaviView.h:55
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:37
BMKWalkCycleDefine.h
BMKMultiNaviView::carPositionOffset
CGPoint carPositionOffset
小车XY偏移量,默认无效值(MAXFLOAT, MAXFLOAT），初始化引擎后设置，since 6.6.4
Definition: BMKMultiNaviView.h:49
BMKMultiNaviView::showLogo
BOOL showLogo
控制地图logo显示隐藏，默认显示，since 6.6.4
Definition: BMKMultiNaviView.h:52
BMKMultiNaviView::defaultNaviMapLevel
float defaultNaviMapLevel
设置默认比例尺，默认：17,范围：4～22
Definition: BMKMultiNaviView.h:35
BMKMultiNaviView::delegate
id< BMKWalkCycleMultiNaviViewDelegate > delegate
Definition: BMKMultiNaviView.h:27
-[BMKMultiNaviView onPause]
void onPause()
暂停导航地图实例。
BMKAuthorizeServiceModel.h
BMKMultiNaviView::multiTagString
NSString * multiTagString
多实例 tag 标识
Definition: BMKMultiNaviView.h:33
BMKMultiNaviView
多实例导航视图
Definition: BMKMultiNaviView.h:27
BMKMultiNaviView::naviMapOverlookingMode
BMKNaviMapOverlookingMode naviMapOverlookingMode
设置导航地图俯仰视角模式，默认：BMKNaviMapOverlookingMode2D 2d视角
Definition: BMKMultiNaviView.h:39
BMKMultiNaviView::naviMapBrowseStatus
BOOL naviMapBrowseStatus
设置导航是否浏览态，默认：NO 非浏览态
Definition: BMKMultiNaviView.h:44
-[BMKMultiNaviView onDestroy]
void onDestroy()
销毁导航地图实例内部持有（并解除绑定多实例导航数据源）。
BMKWalkCycleMultiNaviViewDelegate-p
多实例导航视图代理回调
Definition: BMKMultiNaviView.h:18