BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
BMKCircle.h
浏览该文件的文档.
1/*
2 * BMKCircle.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8
9#import "BMKShape.h"
10#import "BMKOverlay.h"
11
12NS_ASSUME_NONNULL_BEGIN
15@package
16 BOOL _invalidate;
17 CLLocationCoordinate2D _coordinate;
18 CLLocationDistance _radius;
20}
21
26+ (nullable instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord
27 radius:(CLLocationDistance)radius;
28
32+ (nullable instancetype)circleWithMapRect:(BMKMapRect)mapRect;
33
34
36@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
37
39@property (nonatomic, assign) CLLocationDistance radius;
40
42@property (nonatomic, readonly) BMKMapRect boundingMapRect;
43
46@property (nonatomic, copy, nullable) NSArray<id <BMKOverlay>> *hollowShapes;
47
48
53- (BOOL)setCircleWithCenterCoordinate:(CLLocationCoordinate2D)coord
54 radius:(CLLocationDistance)radius;
55
59- (BOOL)setCircleWithMapRect:(BMKMapRect)mapRect;
60
61@end
62NS_ASSUME_NONNULL_END
该类用于定义一个圆
Definition BMKCircle.h:14
CLLocationCoordinate2D coordinate
中心点坐标
Definition BMKCircle.h:36
CLLocationDistance radius
半径,单位:米
Definition BMKCircle.h:39
BMKMapRect boundingMapRect
该圆的外接矩形
Definition BMKCircle.h:42
CLLocationDistance _radius
Definition BMKCircle.h:18
CLLocationCoordinate2D _coordinate
Definition BMKCircle.h:17
BMKMapRect _boundingMapRect
Definition BMKCircle.h:19
NSArray< id< BMKOverlay > > * hollowShapes
Definition BMKCircle.h:46
该类为一个抽象类,定义了基于BMKAnnotation的BMKShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用
Definition BMKShape.h:13
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition BMKOverlay.h:17
矩形,用直角地理坐标表示
Definition BMKTypes.h:233