iOS高德地图SDK(3D) V10.0.600
Loading...
Searching...
No Matches
MACircle Class Reference

该类用于定义一个圆, 通常MACircle是MACircleView的model More...

#import <MACircle.h>

Inheritance diagram for MACircle:
MAShape <MAOverlay> MABaseOverlay <MAAnnotation> <MAOverlay> <MAAnnotation>

Instance Methods

(BOOL) - setCircleWithCenterCoordinate:radius:
 设置圆的中心点和半径. since 5.0.0
 
- Instance Methods inherited from <MAOverlay>
(CLLocationCoordinate2D) - coordinate
 返回区域中心坐标
 
(MAMapRect- boundingMapRect
 区域外接矩形
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用.
 

Class Methods

(instancetype) + circleWithCenterCoordinate:radius:
 根据中心点和半径生成圆
 
(instancetype) + circleWithMapRect:
 根据map rect生成圆
 

Properties

NSArray< id< MAOverlay > > * hollowShapes
 设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与此circle边相交或在circle外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0
 
CLLocationCoordinate2D coordinate
 中心点经纬度坐标,无效坐标按照{0,0}处理
 
CLLocationDistance radius
 半径,单位:米 负数按照0处理
 
- Properties inherited from MAShape
NSString * title
 标题
 
NSString * subtitle
 副标题
 
- Properties inherited from MABaseOverlay
CLLocationCoordinate2D coordinate
 返回区域中心坐标
 
MAMapRect boundingMapRect
 区域外接矩形
 
double altitude
 海拔,单位米,默认0
 
- Properties inherited from <MAAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标
 
NSString * title
 annotation标题
 
NSString * subtitle
 annotation副标题
 
double altitude
 annotation海拔高度,单位米,默认0
 

Additional Inherited Members

- Protected Attributes inherited from MAShape
NSString * _title
 标题
 
NSString * _subtitle
 副标题
 
- Protected Attributes inherited from MABaseOverlay
double _altitude
 海拔
 

Detailed Description

该类用于定义一个圆, 通常MACircle是MACircleView的model

Method Documentation

◆ circleWithCenterCoordinate:radius:

+ (instancetype) circleWithCenterCoordinate: (CLLocationCoordinate2D)  coord
radius: (CLLocationDistance)  radius 

根据中心点和半径生成圆

Parameters
coord中心点的经纬度坐标,无效坐标按照{0,0}处理
radius半径,单位:米, 负数按照0处理
Returns
新生成的圆

◆ circleWithMapRect:

+ (instancetype) circleWithMapRect: (MAMapRect mapRect

根据map rect生成圆

Parameters
mapRectmapRect 圆的最小外界矩形
Returns
新生成的圆

◆ setCircleWithCenterCoordinate:radius:

- (BOOL) setCircleWithCenterCoordinate: (CLLocationCoordinate2D)  coord
radius: (CLLocationDistance)  radius 

设置圆的中心点和半径. since 5.0.0

Parameters
coord中心点的经纬度坐标,无效坐标按照{0,0}处理
radius半径,单位:米 负数按照0处理
Returns
是否设置成功

Property Documentation

◆ coordinate

- (CLLocationCoordinate2D) coordinate
readwritenonatomicassign

中心点经纬度坐标,无效坐标按照{0,0}处理

◆ hollowShapes

- (NSArray<id<MAOverlay> >*) hollowShapes
readwritenonatomicstrong

设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与此circle边相交或在circle外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0

◆ radius

- (CLLocationDistance) radius
readwritenonatomicassign

半径,单位:米 负数按照0处理


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。