BaiduMap_IOSSDK_v7.1.0_Docs  7.1.0
构造函数 | 属性 | 所有成员列表
BMKBackgroundMapView类 参考

进入后台或锁屏时的地图渲染View,配合后台保活和关联源地图BMKMapView用于后台投屏, 更多...

#import <BMKBackgroundMapView.h>

类 BMKBackgroundMapView 继承关系图:

构造函数

(void) - startRender
 开始渲染 更多...
 
(void) - stopRender
 结束渲染 更多...
 
(nullable UIImage *) - takeSnapshot:
 截屏 更多...
 
(nullable UIImage *) - takeSnapshot:needLogo:
 截屏 更多...
 

属性

BMKMapViewmapview
 关联源地图,用于同步数据 更多...
 
NSInteger frameRate
 帧率控制,默认30帧/s,范围10~60帧/s 更多...
 
CGPoint mapScreenExtOffset
 设置地图额外偏移量,x轴负值向左偏,y轴负值向上偏,默认地图中心点targetScreenPt,可用于微调小车位置等 更多...
 
BOOL enable3D
 3D绘制,默认YES 更多...
 
BOOL isRendering
 当前是否在渲染 更多...
 
CGFloat fitScale
 当前适配后缩放比例 更多...
 
UIView * backgroundView
 获取背景图层,用于自定义背景颜色 更多...
 
BMKBackgroundRoadNetViewroadNetView
 获取路网图层,用于自定义路网颜色 更多...
 
BMKBackgroundNavigationViewnavigationView
 
BMKLogoPosition logoPosition
 logo位置,默认BMKLogoPositionLeftBottom 更多...
 
BOOL showScaleBar
 设定是否显式比例尺,默认NO 更多...
 
CGPoint scaleBarPosition
 比例尺的位置,设定坐标以左上角为原点,向右向下增长,默认左上角00 更多...
 
CGSize scaleBarSize
 比例尺的宽高,宽最大值为mapview宽度的一半 更多...
 
UIColor * scaleBarColor
 比例尺颜色,默认黑色 更多...
 
UIColor * scaleBarTextColor
 比例尺文本颜色,默认与比例尺颜色一致 更多...
 

详细描述

进入后台或锁屏时的地图渲染View,配合后台保活和关联源地图BMKMapView用于后台投屏,

函数文档

◆ startRender

- (void) startRender

开始渲染

◆ stopRender

- (void) stopRender

结束渲染

◆ takeSnapshot:

- (nullable UIImage *) takeSnapshot: (CGRect)  rect

截屏

◆ takeSnapshot:needLogo:

- (nullable UIImage *) takeSnapshot: (CGRect)  rect
needLogo: (BOOL)  needLogo 

截屏

属性说明

◆ backgroundView

- (UIView*) backgroundView
readnonatomicassign

获取背景图层,用于自定义背景颜色

◆ enable3D

- (BOOL) enable3D
readwritenonatomicassign

3D绘制,默认YES

◆ fitScale

- (CGFloat) fitScale
readnonatomicassign

当前适配后缩放比例

◆ frameRate

- (NSInteger) frameRate
readwritenonatomicassign

帧率控制,默认30帧/s,范围10~60帧/s

◆ isRendering

- (BOOL) isRendering
readnonatomicassign

当前是否在渲染

◆ logoPosition

- (BMKLogoPosition) logoPosition
readwritenonatomicassign

logo位置,默认BMKLogoPositionLeftBottom

◆ mapScreenExtOffset

- (CGPoint) mapScreenExtOffset
readwritenonatomicassign

设置地图额外偏移量,x轴负值向左偏,y轴负值向上偏,默认地图中心点targetScreenPt,可用于微调小车位置等

◆ mapview

- (BMKMapView*) mapview
readwritenonatomicweak

关联源地图,用于同步数据

◆ navigationView

- (BMKBackgroundNavigationView*) navigationView
readwritenonatomicweak

获取导航图层,用于自定义导航路线宽度,颜色(驾车导航路线路况颜色,走过置灰或擦除,置灰颜色),路线数据更新; 用于自定义导航小车图标及大小,位置方向更新,罗盘是否显示,小车车头是否跟随手机旋转

◆ roadNetView

- (BMKBackgroundRoadNetView*) roadNetView
readnonatomicassign

获取路网图层,用于自定义路网颜色

◆ scaleBarColor

- (UIColor*) scaleBarColor
readwritenonatomicstrong

比例尺颜色,默认黑色

◆ scaleBarPosition

- (CGPoint) scaleBarPosition
readwritenonatomicassign

比例尺的位置,设定坐标以左上角为原点,向右向下增长,默认左上角00

◆ scaleBarSize

- (CGSize) scaleBarSize
readnonatomicassign

比例尺的宽高,宽最大值为mapview宽度的一半

◆ scaleBarTextColor

- (UIColor*) scaleBarTextColor
readwritenonatomicstrong

比例尺文本颜色,默认与比例尺颜色一致

◆ showScaleBar

- (BOOL) showScaleBar
readwritenonatomicassign

设定是否显式比例尺,默认NO


该类的文档由以下文件生成: