iOS高德轻量版地图SDK  1.2.0
MACircle Class Reference

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

#import <MACircle.h>

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

Instance Methods

(BOOL) - setCircleWithCenterCoordinate:radius:
 设置圆的中心点和半径. More...
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用. More...
 

Class Methods

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

Protected Attributes

package MAMapRect _boundingMapRect
 

Properties

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

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 

设置圆的中心点和半径.

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

Member Data Documentation

◆ _boundingMapRect

- (package MAMapRect) _boundingMapRect
protected

Property Documentation

◆ boundingMapRect

- (MAMapRect) boundingMapRect
readnonatomicassign

该圆的外接map rect

◆ coordinate

- (CLLocationCoordinate2D) coordinate
readwritenonatomicassign

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

◆ hollowShapes

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

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

◆ radius

- (CLLocationDistance) radius
readwritenonatomicassign

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


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