| BaiduMap_IOSSDK_v6.6.5_Docs 6.6.5
    | 
此类用于定义一个多边形区域 更多...
#include <BMKPolygon.h>
 
  
| 构造函数 | |
| (BOOL) | - setPolygonWithPoints:count: | 
| (BOOL) | - setPolygonWithCoordinates:count: | 
|  构造函数 继承自 BMKMultiPoint | |
| (void) | - getCoordinates:range: | 
|  构造函数 继承自 <BMKAnnotation> | |
| (NSString *) | - title | 
| 获取annotation标题 | |
| (NSString *) | - subtitle | 
| 获取annotation副标题 | |
| (void) | - setCoordinate: | 
|  构造函数 继承自 <BMKOverlay> | |
| (BOOL) | - intersectsMapRect: | 
| 类方法 | |
| (nullable instancetype) | + polygonWithPoints:count: | 
| (nullable instancetype) | + polygonWithCoordinates:count: | 
| 属性 | |
| NSArray< id< BMKOverlay > > * | hollowShapes | 
| BMKCoordAlgorithm | thin | 
| float | thinFactor | 
| 抽稀算法系数,默认4,since 6.6.4 | |
| NSString * | encodedGeoPoints | 
| 加密后的点信息 | |
| BMKEncodePointType | encodePointType | 
|  属性 继承自 BMKMultiPoint | |
| BMKMapPoint * | points | 
| 坐标点数组 | |
| NSUInteger | pointCount | 
| 坐标点的个数 | |
|  属性 继承自 BMKShape | |
| NSString * | title | 
| 要显示的标题;注意:如果不设置title,无法点击annotation,也无法使用回调函数; | |
| NSString * | subtitle | 
| 要显示的副标题 | |
|  属性 继承自 <BMKAnnotation> | |
| CLLocationCoordinate2D | coordinate | 
| 标注view中心坐标. | |
|  属性 继承自 <BMKOverlay> | |
| CLLocationCoordinate2D | coordinate | 
| 返回区域中心坐标. | |
| BMKMapRect | boundingMapRect | 
| 返回区域外接矩形 | |
| 额外继承的成员函数 | |
|  Protected 属性 继承自 BMKMultiPoint | |
| package BMKMapPoint * | _points | 
| NSUInteger | _pointCount | 
| BMKMapRect | _boundingRect | 
此类用于定义一个多边形区域
| + (nullable instancetype) polygonWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | 
根据多个点生成多边形
| coords | 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中 | 
| count | coords数组中点的个数 | 
| + (nullable instancetype) polygonWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | 
根据多个点生成多边形
| points | 直角坐标点数组,这些点将被拷贝到生成的多边形对象中 | 
| count | points数组中点的个数 | 
| - (BOOL) setPolygonWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | 
重新设置多边形顶点
| coords | 指定的经纬度坐标点数组 | 
| count | coords数组中坐标点的个数 | 
| - (BOOL) setPolygonWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | 
重新设置多边形顶点
| points | 指定的直角坐标点数组 | 
| count | points数组中坐标点的个数 | 
| 
 | readwritenonatomiccopy | 
加密后的点信息
由 category BMKPolygon(EncodedAPI) 提供.
| 
 | readwritenonatomicassign | 
数据类型 since 6.6.0 默认:BMKEncodePointTypeNone
由 category BMKPolygon(EncodedAPI) 提供.
| 
 | readwritenonatomiccopy | 
注意:polygon中的BMKPolgon类型镂空形状点应为逆时针 设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持BMKPolgon类型和BMKCircle类型. since 5.0.0
| 
 | readwritenonatomicassign | 
是否需要对BMKPolgon坐标数据进行抽稀算法处理,默认为kBMKDouglasPeucker since 6.6.4
| 
 | readwritenonatomicassign | 
抽稀算法系数,默认4,since 6.6.4