12NS_ASSUME_NONNULL_BEGIN
26+ (nullable instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord
27 radius:(CLLocationDistance)radius;
32+ (nullable instancetype)circleWithMapRect:(
BMKMapRect)mapRect;
36@property (nonatomic, assign) CLLocationCoordinate2D
coordinate;
39@property (nonatomic, assign) CLLocationDistance
radius;
46@property (nonatomic, copy, nullable) NSArray<id <BMKOverlay>> *
hollowShapes;
53- (BOOL)setCircleWithCenterCoordinate:(CLLocationCoordinate2D)coord
54 radius:(CLLocationDistance)radius;
59- (BOOL)setCircleWithMapRect:(
BMKMapRect)mapRect;
该类用于定义一个圆
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