BaiduMap_IOSSDK_v6.6.7_Docs 6.6.7

BMKBackgroundMapView.h
浏览该文件的文档.
1 //
2 // BMKBackgroundMapView.h
3 // MapComponent
4 //
5 // Created by zhaoxiangru on 2024/2/29.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import "BMKBackgroundRoadNetView.h"
11 #import "BMKBackgroundNavigationView.h"
12 #import "BMKMapView.h"
13
14 NS_ASSUME_NONNULL_BEGIN
16 @interface BMKBackgroundMapView : UIView
18 @property (nonatomic, weak) BMKMapView *mapview;
20 @property (nonatomic, assign) NSInteger frameRate;
22 @property (nonatomic, assign) CGPoint mapScreenExtOffset;
24 @property (nonatomic, assign) BOOL enable3D;
26 @property (nonatomic, readonly) BOOL isRendering;
28 @property (nonatomic, readonly) CGFloat fitScale;
30 @property (nonatomic, readonly) UIView *backgroundView;
32 @property (nonatomic, readonly) BMKBackgroundRoadNetView *roadNetView;
35 @property (nonatomic, weak) BMKBackgroundNavigationView *navigationView;
37 @property (nonatomic, assign) BMKLogoPosition logoPosition;
39 - (void)startRender;
41 - (void)stopRender;
43 - (nullable UIImage *)takeSnapshot:(CGRect)rect;
44 @end
45
46 NS_ASSUME_NONNULL_END
BMKBackgroundMapView::mapScreenExtOffset
CGPoint mapScreenExtOffset
设置地图额外偏移量,x轴负值向左偏，y轴负值向上偏，默认地图中心点targetScreenPt，可用于微调小车位置等
Definition: BMKBackgroundMapView.h:22
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition: BMKMapView.h:118
BMKBackgroundMapView::mapview
BMKMapView * mapview
关联源地图，用于同步数据
Definition: BMKBackgroundMapView.h:18
BMKBackgroundMapView::roadNetView
BMKBackgroundRoadNetView * roadNetView
获取路网图层，用于自定义路网颜色
Definition: BMKBackgroundMapView.h:32
BMKBackgroundMapView::fitScale
CGFloat fitScale
当前适配后缩放比例
Definition: BMKBackgroundMapView.h:28
BMKBackgroundMapView::isRendering
BOOL isRendering
当前是否在渲染
Definition: BMKBackgroundMapView.h:26
BMKBackgroundRoadNetView.h
-[BMKBackgroundMapView startRender]
void startRender()
开始渲染
BMKBackgroundMapView::enable3D
BOOL enable3D
3D绘制，默认YES
Definition: BMKBackgroundMapView.h:24
-[BMKBackgroundMapView stopRender]
void stopRender()
结束渲染
BMKLogoPosition
BMKLogoPosition
枚举：logo位置
Definition: BMKMapView.h:59
BMKBackgroundMapView::logoPosition
BMKLogoPosition logoPosition
logo位置，默认BMKLogoPositionLeftBottom
Definition: BMKBackgroundMapView.h:37
BMKBackgroundMapView
进入后台或锁屏时的地图渲染View，配合后台保活和关联源地图BMKMapView用于后台投屏，
Definition: BMKBackgroundMapView.h:17
BMKBackgroundRoadNetView
Definition: BMKBackgroundRoadNetView.h:15
BMKBackgroundMapView::frameRate
NSInteger frameRate
帧率控制，默认30帧/s，范围10～60帧/s
Definition: BMKBackgroundMapView.h:20
BMKBackgroundMapView::backgroundView
UIView * backgroundView
获取背景图层,用于自定义背景颜色
Definition: BMKBackgroundMapView.h:30
BMKBackgroundMapView::navigationView
BMKBackgroundNavigationView * navigationView
Definition: BMKBackgroundMapView.h:35
BMKMapView.h