BaiduMap_IOSSDK_v4.2.1_Docs
|
此类用于定义一个多边形区域 更多...
#import <BMKPolygon.h>
构造函数 | |
(BOOL) | - setPolygonWithPoints:count: |
(BOOL) | - setPolygonWithCoordinates:count: |
![]() | |
(void) | - getCoordinates:range: |
类方法 | |
(BMKPolygon *) | + polygonWithPoints:count: |
(BMKPolygon *) | + polygonWithCoordinates:count: |
额外继承的成员函数 | |
![]() | |
package BMKMapPoint * | _points |
NSUInteger | _pointCount |
BMKMapRect | _boundingRect |
![]() | |
BMKMapPoint * | points |
坐标点数组 | |
NSUInteger | pointCount |
坐标点的个数 | |
![]() | |
NSString * | title |
要显示的标题;注意:如果不设置title,无法点击annotation,也无法使用回调函数; | |
NSString * | subtitle |
要显示的副标题 | |
此类用于定义一个多边形区域
+ (BMKPolygon *) polygonWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
count: | (NSUInteger) | count | |
根据多个点生成多边形
coords | 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中 |
count | 点的个数 |
+ (BMKPolygon *) polygonWithPoints: | (BMKMapPoint *) | points | |
count: | (NSUInteger) | count | |
根据多个点生成多边形
points | 直角坐标点数组,这些点将被拷贝到生成的多边形对象中 |
count | 点的个数 |
- (BOOL) setPolygonWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
count: | (NSInteger) | count | |
重新设置多边形顶点
coords | 指定的经纬度坐标点数组 |
count | 坐标点的个数 |
- (BOOL) setPolygonWithPoints: | (BMKMapPoint *) | points | |
count: | (NSInteger) | count | |
重新设置多边形顶点
points | 指定的直角坐标点数组 |
count | 坐标点的个数 |