BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
BMKText.h
浏览该文件的文档.
1//
2// BMKText.h
3// MapComponent
4//
5// Created by zhangbaojin on 2022/3/3.
6// Copyright © 2022 Baidu. All rights reserved.
7//
8
9#import "BMKShape.h"
10#import "BMKOverlay.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
15@interface BMKText : BMKShape <BMKOverlay> {
16@package
17 CLLocationCoordinate2D _coordinate;
19}
20
22@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
23
25@property (nonatomic, copy) NSString *text;
26
30+ (nullable instancetype)textWithCenterCoordinate:(CLLocationCoordinate2D)coord
31 text:(NSString *)text;
32
37- (BOOL)setCircleWithCenterCoordinate:(CLLocationCoordinate2D)coord
38 text:(NSString *)text;
39@end
40
41NS_ASSUME_NONNULL_END
该类为一个抽象类,定义了基于BMKAnnotation的BMKShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用
Definition BMKShape.h:13
文字覆盖物 since 6.5.2
Definition BMKText.h:15
NSString * text
文字覆盖物文字内容
Definition BMKText.h:25
BMKMapRect _boundingMapRect
Definition BMKText.h:18
CLLocationCoordinate2D coordinate
文字覆盖物中心点坐标
Definition BMKText.h:22
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition BMKOverlay.h:17
矩形,用直角地理坐标表示
Definition BMKTypes.h:233