BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKBackgroundRoadNetView.h
浏览该文件的文档.
1 //
2 // BMKBackgroundRoadNetView.h
3 // MapComponent
4 //
5 // Created by zhaoxiangru on 2024/2/29.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8
9 #import <QuartzCore/QuartzCore.h>
10 #import "BMKMapStatus.h"
11 @class BMKMapView;
12 NS_ASSUME_NONNULL_BEGIN
13
14 @interface BMKBackgroundRoadNetView : UIView
16 @property (nonatomic, weak, nullable) BMKMapView *mapview;
18 //@property (nonatomic, strong) UIColor *roadNetBackColor;
20 @property (nonatomic, assign) BOOL needDrawRoadNet;
22 @property (nonatomic, strong) UIColor *roadNetColor;
24 @property (nonatomic, assign) BOOL needDrawRoadTraffic;
26 @property (nonatomic, strong) NSArray<UIColor *> *roadTrafficColor;
28 @property (nonatomic, assign) BOOL needDrawRoadName;
30 @property (nonatomic, strong) UIFont *roadNameFont;
32 @property (nonatomic, strong) UIColor *roadNameTextColor;
34 @property (nonatomic, strong) UIColor *roadNameStrokeColor;
36 @property (nonatomic, assign) CGFloat roadNameStrokeWidth;
37
39 - (void)renderWithMapStatus:(BMKMapStatus *)mapstatus enable3D:(BOOL)enable3D fitScale:(CGFloat)fitScale mapScreenExtOffset:(CGPoint)mapScreenExtOffset;
40 @end
41
42 NS_ASSUME_NONNULL_END
BMKMapStatus
此类表示地图状态信息
Definition: BMKMapStatus.h:16
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition: BMKMapView.h:132
BMKMapStatus.h
BMKBackgroundRoadNetView::needDrawRoadName
BOOL needDrawRoadName
是否绘制路名，默认NO
Definition: BMKBackgroundRoadNetView.h:28
BMKBackgroundRoadNetView::needDrawRoadNet
BOOL needDrawRoadNet
设置路网背景颜色
Definition: BMKBackgroundRoadNetView.h:20
BMKBackgroundRoadNetView::roadNetColor
UIColor * roadNetColor
设置路网颜色
Definition: BMKBackgroundRoadNetView.h:22
BMKBackgroundRoadNetView::needDrawRoadTraffic
BOOL needDrawRoadTraffic
是否绘制路况，默认NO,需配合设置关联mapview的trafficEnabled属性为YES，否则不生效
Definition: BMKBackgroundRoadNetView.h:24
BMKBackgroundRoadNetView::mapview
BMKMapView * mapview
关联源地图，用于同步数据
Definition: BMKBackgroundRoadNetView.h:16
BMKBackgroundRoadNetView::roadNameFont
UIFont * roadNameFont
路名字体，默认[UIFont systemFontOfSize:10]
Definition: BMKBackgroundRoadNetView.h:30
BMKBackgroundRoadNetView::roadNameTextColor
UIColor * roadNameTextColor
路名颜色，默认 blackColor
Definition: BMKBackgroundRoadNetView.h:32
BMKBackgroundRoadNetView
Definition: BMKBackgroundRoadNetView.h:15
BMKBackgroundRoadNetView::roadTrafficColor
NSArray< UIColor * > * roadTrafficColor
设置路线路况颜色数组,count必须为5，默认按顺序为未知:#0000FF88 畅通：#50D27D88 缓行：::FFD04688 拥挤：::E7211000 严重拥堵：::B4170A00
Definition: BMKBackgroundRoadNetView.h:26
BMKBackgroundRoadNetView::roadNameStrokeWidth
CGFloat roadNameStrokeWidth
路名描边宽度，默认 1.0
Definition: BMKBackgroundRoadNetView.h:36
BMKBackgroundRoadNetView::roadNameStrokeColor
UIColor * roadNameStrokeColor
路名描边颜色，默认 whiteColor
Definition: BMKBackgroundRoadNetView.h:34