BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

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
12 NS_ASSUME_NONNULL_BEGIN
14 @interface BMKCircle : BMKShape <BMKOverlay> {
15 @package
16 BOOL _invalidate;
17 CLLocationCoordinate2D _coordinate;
18 CLLocationDistance _radius;
19 BMKMapRect _boundingMapRect;
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
62 NS_ASSUME_NONNULL_END
BMKCircle::boundingMapRect
BMKMapRect boundingMapRect
该圆的外接矩形
Definition: BMKCircle.h:42
BMKShape.h
BMKShape
该类为一个抽象类，定义了基于BMKAnnotation的BMKShape类的基本属性和行为，不能直接使用，必须子类化之后才能使用
Definition: BMKShape.h:13
BMKOverlay.h
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKCircle::_boundingMapRect
BMKMapRect _boundingMapRect
Definition: BMKCircle.h:19
BMKCircle::hollowShapes
NSArray< id< BMKOverlay > > * hollowShapes
Definition: BMKCircle.h:46
BMKCircle
该类用于定义一个圆
Definition: BMKCircle.h:14
BMKCircle::radius
CLLocationDistance radius
半径，单位：米
Definition: BMKCircle.h:39
BMKCircle::_radius
CLLocationDistance _radius
Definition: BMKCircle.h:18
BMKCircle::coordinate
CLLocationCoordinate2D coordinate
中心点坐标
Definition: BMKCircle.h:36
BMKMapRect
矩形，用直角地理坐标表示
Definition: BMKTypes.h:286
BMKCircle::_coordinate
CLLocationCoordinate2D _coordinate
Definition: BMKCircle.h:17