|
BaiduMap_IOSSDK_v6.5.2_Docs
6.5.2
|
此类用于定义一段折线 更多...
#import <BMKPolyline.h>
构造函数 | |
| (BOOL) | - setPolylineWithPoints:count: |
| (BOOL) | - setPolylineWithCoordinates:count: |
| (NSArray< NSNumber * > *textureIndex) | - __deprecated_msg |
| 颜色/纹理索引数组 更多... | |
| (BOOL) | - setPolylineWithPoints:count:textureIndex: |
| (BOOL) | - setPolylineWithCoordinates:count:textureIndex: |
构造函数 继承自 BMKMultiPoint | |
| (void) | - getCoordinates:range: |
构造函数 继承自 <BMKAnnotation> | |
| (NSString *) | - title |
| 获取annotation标题 更多... | |
| (NSString *) | - subtitle |
| 获取annotation副标题 更多... | |
| (void) | - setCoordinate: |
构造函数 继承自 <BMKOverlay> | |
| (BOOL) | - intersectsMapRect: |
类方法 | |
| (nullable instancetype) | + polylineWithPoints:count: |
| (nullable instancetype) | + polylineWithCoordinates:count: |
| (nullable instancetype) | + polylineWithPoints:count:textureIndex: |
| (nullable instancetype) | + polylineWithCoordinates:count:textureIndex: |
属性 | |
| BOOL | isThined |
| BMKLineDirectionCross180Type | lineDirectionCross180 |
属性 继承自 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 |
此类用于定义一段折线
| - (NSArray<NSNumber *>* textureIndex) __deprecated_msg | ("已废弃since 6.5.) | 0 | |
| (请使用BMKMultiPolyline中drawIndexs") | |||
颜色/纹理索引数组
注意:since 6.5.0 绘制多颜色/多纹理折线请使用BMKMultiPolyline 以下接口自6.5.0起不在维护
| + (nullable instancetype) polylineWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | |
根据指定坐标点生成一段折线
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| + (nullable instancetype) polylineWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | |
| textureIndex: | ("已废弃since 6.5.) | 0 | |
| (请使用BMKMultiPolyline中multiPolylineWithCoordinates:count:drawIndexs:替换") | __deprecated_msg | ||
根据指定坐标点生成一段折线 分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| textureIndex | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
| + (nullable instancetype) polylineWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | |
根据指定坐标点生成一段折线
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| + (nullable instancetype) polylineWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | |
| textureIndex: | ("已废弃since 6.5.) | 0 | |
| (请使用BMKMultiPolyline中multiPolylineWithPoints:count:drawIndexs:替换") | __deprecated_msg | ||
分段纹理绘制/分段颜色绘制,根据指定坐标点生成一段折线 分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| textureIndex | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
| - (BOOL) setPolylineWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | |
重新设置折线坐标点
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| - (BOOL) setPolylineWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
| count: | (NSUInteger) | count | |
| textureIndex: | ("已废弃since 6.5.) | 0 | |
| (请使用BMKMultiPolyline中setMultiPolylineWithCoordinates:count:drawIndexs:替换") | __deprecated_msg | ||
重新设置折线坐标点
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| textureIndex | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
| - (BOOL) setPolylineWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | |
重新设置折线坐标点
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| - (BOOL) setPolylineWithPoints: | (BMKMapPoint *) | points | |
| count: | (NSUInteger) | count | |
| textureIndex: | ("已废弃since 6.5.) | 0 | |
| (请使用BMKMultiPolyline中setMultiPolylineWithPoints:count:drawIndexs:替换") | __deprecated_msg | ||
重新设置折线坐标点 和 纹理索引
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| textureIndex | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
|
readwritenonatomicassign |
是否需要对Polyline坐标数据进行抽稀,默认为YES since 5.3.0
|
readwritenonatomicassign |
折线经度跨180所需字段 since 6.3.0 不跨180为kBMKLineDirectionCross180TypeNone, 从东往西为kBMKLineDirectionCross180TypeEAST_TO_WEST 从西往东为kBMKLineDirectionCross180TypeWEST_TO_EAST 默认kBMKLineDirectionCross180TypeNone