BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

构造函数 | 属性 | 所有成员列表
BMKBackgroundRoadNetView类 参考

`#import <BMKBackgroundRoadNetView.h>`

类 BMKBackgroundRoadNetView 继承关系图:

## 构造函数
(void) | - renderWithMapStatus:enable3D:fitScale:mapScreenExtOffset:
| 渲染路网 更多...

## 属性
BMKMapView * | mapview
| 关联源地图，用于同步数据 更多...
BOOL | needDrawRoadNet
| 设置路网背景颜色 更多...
UIColor * | roadNetColor
| 设置路网颜色 更多...
BOOL | needDrawRoadTraffic
| 是否绘制路况，默认NO,需配合设置关联mapview的trafficEnabled属性为YES，否则不生效 更多...
NSArray< UIColor * > * | roadTrafficColor
| 设置路线路况颜色数组,count必须为5，默认按顺序为未知:#0000FF88 畅通：#50D27D88 缓行：::FFD04688 拥挤：::E7211000 严重拥堵：::B4170A00 更多...
BOOL | needDrawRoadName
| 是否绘制路名，默认NO 更多...
UIFont * | roadNameFont
| 路名字体，默认[UIFont systemFontOfSize:10] 更多...
UIColor * | roadNameTextColor
| 路名颜色，默认 blackColor 更多...
UIColor * | roadNameStrokeColor
| 路名描边颜色，默认 whiteColor 更多...
CGFloat | roadNameStrokeWidth
| 路名描边宽度，默认 1.0 更多...

## 函数文档

## ◆ renderWithMapStatus:enable3D:fitScale:mapScreenExtOffset:

- (void) renderWithMapStatus: |  | (BMKMapStatus *) | mapstatus
enable3D: |  | (BOOL) | enable3D
fitScale: |  | (CGFloat) | fitScale
mapScreenExtOffset: |  | (CGPoint) | mapScreenExtOffset

渲染路网

## 属性说明

## ◆ mapview

- (BMKMapView*) mapview
| read write nonatomic weak

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

## ◆ needDrawRoadName

- (BOOL) needDrawRoadName
| read write nonatomic assign

是否绘制路名，默认NO

## ◆ needDrawRoadNet

- (BOOL) needDrawRoadNet
| read write nonatomic assign

设置路网背景颜色

是否绘制路网，默认YES

## ◆ needDrawRoadTraffic

- (BOOL) needDrawRoadTraffic
| read write nonatomic assign

是否绘制路况，默认NO,需配合设置关联mapview的trafficEnabled属性为YES，否则不生效

## ◆ roadNameFont

- (UIFont*) roadNameFont
| read write nonatomic strong

路名字体，默认[UIFont systemFontOfSize:10]

## ◆ roadNameStrokeColor

- (UIColor*) roadNameStrokeColor
| read write nonatomic strong

路名描边颜色，默认 whiteColor

## ◆ roadNameStrokeWidth

- (CGFloat) roadNameStrokeWidth
| read write nonatomic assign

路名描边宽度，默认 1.0

## ◆ roadNameTextColor

- (UIColor*) roadNameTextColor
| read write nonatomic strong

路名颜色，默认 blackColor

## ◆ roadNetColor

- (UIColor*) roadNetColor
| read write nonatomic strong

设置路网颜色

## ◆ roadTrafficColor

- (NSArray<UIColor *>*) roadTrafficColor
| read write nonatomic strong

设置路线路况颜色数组,count必须为5，默认按顺序为未知:#0000FF88 畅通：#50D27D88 缓行：::FFD04688 拥挤：::E7211000 严重拥堵：::B4170A00

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

- BaiduMapAPI_Map.framework/Headers/BMKBackgroundRoadNetView.h