TencentMapSDK_iOS_3D_v6.7.0

QMapView+Config.h
1 //
2 // QMapView+Config.h
3 // QMapKit
4 //
5 // Created by Zhang Tian on 2018/5/9.
6 // Copyright © 2018年 tencent. All rights reserved.
7 //
8
9 #import <QMapKit/QMapKit.h>
10 #import "QOverseaProvider.h"
11 #import "QNew3DImmersiveConfig.h"
12
13 @class QTrafficStyle;
14
18 @interface QMapConfig : NSObject
19
23 @property (nonatomic, copy, readonly) NSString *subID;
24
28 @property (nonatomic, copy, readonly) NSString *subKey;
29
33 @property (nonatomic, copy) NSString *mapFont;
34
38 @property (nonatomic, copy) NSDictionary *preset;
39
43 @property (nonatomic, assign) int overseaSourceType;
44
48 @property (nonatomic, strong) QTrafficStyle *trafficStyle;
49
53 @property (nonatomic, assign) BOOL enableMSAA;
54
58 @property (nonatomic, strong) QNew3DImmersiveConfig *qNew3DImmersiveConfig;
59
60
68 - (instancetype)initWithSubID:(NSString *)subID subKey:(NSString *)subKey;
69
70 @end
71
75 @interface QMapView (Config)
76
84 - (instancetype)initWithFrame:(CGRect)frame config:(QMapConfig *)config;
85
91 - (void)setOverseaSource:(QOverseaProvider*)provider;
92
93 @end
94
98 @interface QTrafficStyle : NSObject
99
101 @property (nonatomic, strong) UIColor *smoothColor;
102
104 @property (nonatomic, strong) UIColor *smoothBorderColor;
105
107 @property (nonatomic, strong) UIColor *slowColor;
108
110 @property (nonatomic, strong) UIColor *slowBorderColor;
111
113 @property (nonatomic, strong) UIColor *congestedColor;
114
116 @property (nonatomic, strong) UIColor *congestedBorderColor;
117
119 @property (nonatomic, strong) UIColor *seriouseCongestedColor;
120
122 @property (nonatomic, strong) UIColor *seriouseCongestedBorderColor;
123
125 @property (nonatomic, assign) int borderWidth;
126
128 @property (nonatomic, assign) int lineWidth;
129
130 @end
QMapConfig::overseaSourceType
int overseaSourceType
配置其它的海外图源, 默认为0使用内置
Definition: QMapView+Config.h:43
QMapConfig::preset
NSDictionary * preset
自定义配置
Definition: QMapView+Config.h:38
QMapConfig::enableMSAA
BOOL enableMSAA
是否启动MSAA，默认为NO
Definition: QMapView+Config.h:53
QMapConfig::qNew3DImmersiveConfig
QNew3DImmersiveConfig * qNew3DImmersiveConfig
3D沉浸式地图样式配置
Definition: QMapView+Config.h:58
QTrafficStyle
自定义路况样式
Definition: QMapView+Config.h:99
QMapConfig::trafficStyle
QTrafficStyle * trafficStyle
自定义路况样式配置项
Definition: QMapView+Config.h:48
QNew3DImmersiveConfig
Definition: QNew3DImmersiveConfig.h:22
QMapView(Config)
地图View的配置相关API.
Definition: QMapView+Config.h:75
QMapConfig::mapFont
NSString * mapFont
附加 地图字体, nil则使用默认字体
Definition: QMapView+Config.h:33
QMapConfig::subKey
NSString * subKey
附加 key, 这里目前是为小程序提供, 需要小程序开发者传入申请的 key.
Definition: QMapView+Config.h:28
QOverseaProvider
自定义图源的设置类
Definition: QOverseaProvider.h:19
QMapConfig::subID
NSString * subID
附加 appId, 这里目前是为小程序提供, 传入小程序的 appId.
Definition: QMapView+Config.h:23
QMapConfig
地图View的配置.
Definition: QMapView+Config.h:19