TencentMapSDK_iOS_3D_v6.4.0
载入中...
搜索中...
未找到
QText.h
1//
2// QText.h
3// QMapKit
4//
5// Created by fan on 2019/8/9.
6// Copyright © 2019 tencent. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import <CoreLocation/CLLocation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
19typedef enum QRTextPriority {
20 QTextPriority_Normal,
21 QTextPriority_High
22} QTextPriority;
23
27@interface QTextStyle : NSObject
28
32@property (nonatomic, strong) UIColor *textColor;
33
37@property (nonatomic, strong) UIColor *strokeColor;
38
42@property (nonatomic, assign) CGFloat fontSize;
43
49@property (nonatomic, assign) QTextPriority priority;
50
51@end
52
56@interface QSegmentText : NSObject
57
61@property (nonatomic, assign) int startIndex;
62
66@property (nonatomic, assign) int endIndex;
67
71@property (nonatomic, copy ) NSString *name;
72
73@end
74
75
82@interface QText : NSObject
83
87@property (nonatomic, strong) QTextStyle *style;
88
92@property (nonatomic, readonly) NSArray<QSegmentText *> *segments;
93
101- (instancetype)initWithSegments:(NSArray<QSegmentText *> *)segments;
102
103@end
104
105NS_ASSUME_NONNULL_END
代表单段显示的文本内容
定义 QText.h:57
NSString * name
本段的文本内容
定义 QText.h:71
int endIndex
本段在轨迹点串中的终止下标. 请确保大于startIndex
定义 QText.h:66
int startIndex
本段在轨迹点串中的起始下标. 从0开始
定义 QText.h:61
此类用于显示文本信息, 层级与POI label相同 @notes 需保证最上层显示的文本信息中QTextStyle priority为QTextPriority_High 以及对应的overlayvi...
定义 QText.h:83
NSArray< QSegmentText * > * segments
文本信息的数据。可沿路径显示,可在每段(QSegmentText)显示不同的文本
定义 QText.h:92
QTextStyle * style
文本信息的显示样式
定义 QText.h:87
文本信息的显示样式
定义 QText.h:28
QTextPriority priority
字的优先级。当多个文本间有碰撞时更高的优先显示. 默认为QTextPriority_High.
定义 QText.h:49
UIColor * strokeColor
字的描边色
定义 QText.h:37
CGFloat fontSize
字的字号. 默认14
定义 QText.h:42
UIColor * textColor
字的颜色
定义 QText.h:32