DMKPolygon Class Reference
| Inherits from | DMKMultiPoint : DMKShape : NSObject |
|---|---|
| Conforms to | DMKOverlay |
| Declared in | DMKPolygon.h |
interiorPolygons
内嵌DMKPolygon数组,在生成的多边形中将会裁减掉内嵌polygon包含的区域
@property (nonatomic, readonly) NSArray *interiorPolygonsDiscussion
内嵌DMKPolygon数组,在生成的多边形中将会裁减掉内嵌polygon包含的区域
Declared In
DMKPolygon.h
+ polygonWithPoints:count:
根据map point数据生成多边形
+ (instancetype)polygonWithPoints:(DMKMapPoint *)points count:(NSUInteger)countParameters
points |
mapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放 |
|---|---|
count |
点的个数 |
Return Value
新生成的多边形
Declared In
DMKPolygon.h
+ polygonWithPoints:count:interiorPolygons:
根据map point数据和interior polygons生成多边形
+ (instancetype)polygonWithPoints:(DMKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygonsParameters
points |
mapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放 |
|---|---|
count |
点的个数 |
interiorPolygons |
DMKPolygon数组,指定在生成的多边形中需要裁剪掉的区域 |
Return Value
新生成的多边形
Declared In
DMKPolygon.h
+ polygonWithCoordinates:count:
根据经纬度坐标数据生成闭合多边形
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)countParameters
coords |
经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放 |
|---|---|
count |
经纬度坐标点数组个数 |
Return Value
新生成的多边形
Declared In
DMKPolygon.h
+ polygonWithCoordinates:count:interiorPolygons:
根据经纬度坐标数据和interior polygons生成闭合多边形
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygonsParameters
coords |
经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放 |
|---|---|
count |
经纬度坐标点数组个数 |
interiorPolygons |
DMKPolygon数组,指定在生成的多边形中需要裁剪掉的区域 |
Return Value
新生成的多边形
Declared In
DMKPolygon.h