高德地图SDK(定位)  V2.10.0
AMapLocationPolygonRegion Class Reference

AMapLocationCircleRegion类,定义一个闭合多边形范围,点与点之间按顺序尾部相连, 第一个点与最后一个点相连。 More...

#import <AMapLocationRegionObj.h>

Inheritance diagram for AMapLocationPolygonRegion:
AMapLocationRegion

Instance Methods

(instancetype) - initWithCoordinates:count:identifier:
 根据经纬度坐标数据生成闭合多边形范围 More...
 
- Instance Methods inherited from AMapLocationRegion
(instancetype) - initWithIdentifier:
 初始化方法 More...
 
(BOOL) - containsCoordinate:
 坐标点是否在范围内 More...
 

Properties

CLLocationCoordinate2D * coordinates
 经纬度坐标点数据 More...
 
NSInteger count
 经纬度坐标点的个数 More...
 
- Properties inherited from AMapLocationRegion
NSString * identifier
 AMapLocationRegion的identifier. More...
 
BOOL notifyOnEntry
 当进入region范围时是否通知,默认YES More...
 
BOOL notifyOnExit
 当离开region范围时是否通知,默认YES More...
 

Detailed Description

AMapLocationCircleRegion类,定义一个闭合多边形范围,点与点之间按顺序尾部相连, 第一个点与最后一个点相连。

Method Documentation

◆ initWithCoordinates:count:identifier:

- (instancetype) initWithCoordinates: (CLLocationCoordinate2D *)  coordinates
count: (NSInteger)  count
identifier: (NSString *)  identifier 

根据经纬度坐标数据生成闭合多边形范围

Parameters
coordinates经纬度坐标点数据,coordinates对应的内存会拷贝,调用者负责该内存的释放
count经纬度坐标点的个数,不可小于3个
identifier唯一标识符,必填,不可为nil
Returns
AMapLocationCircleRegion类实例

Property Documentation

◆ coordinates

- (CLLocationCoordinate2D*) coordinates
readnonatomicassign

经纬度坐标点数据

◆ count

- (NSInteger) count
readnonatomicassign

经纬度坐标点的个数


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