TencentMapSDK_iOS_3D_v5.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 
12 @class QTrafficStyle;
13 
17 @interface QMapConfig : NSObject
18 
22 @property (nonatomic, copy, readonly) NSString *subID;
23 
27 @property (nonatomic, copy, readonly) NSString *subKey;
28 
32 @property (nonatomic, copy) NSString *mapFont;
33 
37 @property (nonatomic, copy) NSDictionary *preset;
38 
42 @property (nonatomic, assign) int overseaSourceType;
43 
47 @property (nonatomic, strong) QTrafficStyle *trafficStyle;
48 
52 @property (nonatomic, assign) BOOL enableMSAA;
53 
61 - (instancetype)initWithSubID:(NSString *)subID subKey:(NSString *)subKey;
62 
63 @end
64 
69 
77 - (instancetype)initWithFrame:(CGRect)frame config:(QMapConfig *)config;
78 
84 - (void)setOverseaSource:(QOverseaProvider*)provider;
85 
86 @end
87 
91 @interface QTrafficStyle : NSObject
92 
94 @property (nonatomic, strong) UIColor *smoothColor;
95 
97 @property (nonatomic, strong) UIColor *smoothBorderColor;
98 
100 @property (nonatomic, strong) UIColor *slowColor;
101 
103 @property (nonatomic, strong) UIColor *slowBorderColor;
104 
106 @property (nonatomic, strong) UIColor *congestedColor;
107 
109 @property (nonatomic, strong) UIColor *congestedBorderColor;
110 
112 @property (nonatomic, strong) UIColor *seriouseCongestedColor;
113 
115 @property (nonatomic, strong) UIColor *seriouseCongestedBorderColor;
116 
118 @property (nonatomic, assign) int borderWidth;
119 
121 @property (nonatomic, assign) int lineWidth;
122 
123 @end
QMapConfig::overseaSourceType
int overseaSourceType
配置其它的海外图源, 默认为0使用内置
Definition: QMapView+Config.h:42
QMapConfig::preset
NSDictionary * preset
自定义配置
Definition: QMapView+Config.h:37
QMapConfig::enableMSAA
BOOL enableMSAA
是否启动MSAA,默认为NO
Definition: QMapView+Config.h:52
QTrafficStyle
自定义路况样式
Definition: QMapView+Config.h:92
QMapConfig::trafficStyle
QTrafficStyle * trafficStyle
自定义路况样式配置项
Definition: QMapView+Config.h:47
QMapView(Config)
地图View的配置相关API.
Definition: QMapView+Config.h:68
QMapConfig::mapFont
NSString * mapFont
附加 地图字体, nil则使用默认字体
Definition: QMapView+Config.h:32
QMapConfig::subKey
NSString * subKey
附加 key, 这里目前是为小程序提供, 需要小程序开发者传入申请的 key.
Definition: QMapView+Config.h:27
QOverseaProvider
自定义图源的设置类
Definition: QOverseaProvider.h:19
QMapConfig::subID
NSString * subID
附加 appId, 这里目前是为小程序提供, 传入小程序的 appId.
Definition: QMapView+Config.h:22
QMapConfig
地图View的配置.
Definition: QMapView+Config.h:18