BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
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>
12
13@class BMKMapView;
14NS_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- (void)startRender;
39- (void)stopRender;
41- (nullable UIImage *)takeSnapshot:(CGRect)rect;
42@end
43
44NS_ASSUME_NONNULL_END
进入后台或锁屏时的地图渲染View,配合后台保活和关联源地图BMKMapView用于后台投屏,
Definition BMKBackgroundMapView.h:17
NSInteger frameRate
帧率控制,默认30帧/s,范围10~60帧/s
Definition BMKBackgroundMapView.h:20
BOOL isRendering
当前是否在渲染
Definition BMKBackgroundMapView.h:26
BOOL enable3D
3D绘制,默认YES
Definition BMKBackgroundMapView.h:24
void stopRender()
结束渲染
CGPoint mapScreenExtOffset
设置地图额外偏移量,x轴负值向左偏,y轴负值向上偏,默认地图中心点targetScreenPt,可用于微调小车位置等
Definition BMKBackgroundMapView.h:22
BMKBackgroundRoadNetView * roadNetView
获取路网图层,用于自定义路网颜色
Definition BMKBackgroundMapView.h:32
BMKMapView * mapview
关联源地图,用于同步数据
Definition BMKBackgroundMapView.h:18
UIView * backgroundView
获取背景图层,用于自定义背景颜色
Definition BMKBackgroundMapView.h:30
BMKBackgroundNavigationView * navigationView
Definition BMKBackgroundMapView.h:35
void startRender()
开始渲染
CGFloat fitScale
当前适配后缩放比例
Definition BMKBackgroundMapView.h:28
Definition BMKBackgroundNavigationView.h:68
Definition BMKBackgroundRoadNetView.h:15
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition BMKMapView.h:108