iOS高德地图SDK(2D)  v5.6.0
MAPolygon Class Reference

此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonRenderer的model More...

#import <MAPolygon.h>

Inheritance diagram for MAPolygon:
MAMultiPoint MAShape

Class Methods

(instancetype) + polygonWithPoints:count:
 根据map point数据生成多边形 More...
 
(instancetype) + polygonWithPoints:count:interiorPolygons:
 根据map point数据和interior polygons生成多边形 More...
 
(instancetype) + polygonWithCoordinates:count:
 根据经纬度坐标数据生成闭合多边形 More...
 
(instancetype) + polygonWithCoordinates:count:interiorPolygons:
 根据经纬度坐标数据和interior polygons生成闭合多边形 More...
 

Properties

NSArray * interiorPolygons
 内嵌MAPolygon数组,在生成的多边形中将会裁减掉内嵌polygon包含的区域 More...
 
- Properties inherited from MAMultiPoint
MAMapPointpoints
 坐标点数组 More...
 
NSUInteger pointCount
 坐标点的个数 More...
 
- Properties inherited from MAShape
NSString * title
 标题 More...
 
NSString * subtitle
 副标题 More...
 

Additional Inherited Members

- Instance Methods inherited from MAMultiPoint
(void) - getCoordinates:range:
 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中 More...
 

Detailed Description

此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonRenderer的model

Method Documentation

◆ polygonWithCoordinates:count:()

+ (instancetype) polygonWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

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

Parameters
coords经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
count经纬度坐标点数组个数
Returns
新生成的多边形

◆ polygonWithCoordinates:count:interiorPolygons:()

+ (instancetype) polygonWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count
interiorPolygons: (NSArray *)  interiorPolygons 

根据经纬度坐标数据和interior polygons生成闭合多边形

Parameters
coords经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
count经纬度坐标点数组个数
interiorPolygonsMAPolygon数组,指定在生成的多边形中需要裁剪掉的区域
Returns
新生成的多边形

◆ polygonWithPoints:count:()

+ (instancetype) polygonWithPoints: (MAMapPoint *)  points
count: (NSUInteger)  count 

根据map point数据生成多边形

Parameters
pointsmapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放
count点的个数
Returns
新生成的多边形

◆ polygonWithPoints:count:interiorPolygons:()

+ (instancetype) polygonWithPoints: (MAMapPoint *)  points
count: (NSUInteger)  count
interiorPolygons: (NSArray *)  interiorPolygons 

根据map point数据和interior polygons生成多边形

Parameters
pointsmapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放
count点的个数
interiorPolygonsMAPolygon数组,指定在生成的多边形中需要裁剪掉的区域
Returns
新生成的多边形

Property Documentation

◆ interiorPolygons

- (NSArray*) interiorPolygons
readatomicassign

内嵌MAPolygon数组,在生成的多边形中将会裁减掉内嵌polygon包含的区域


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