| BaiduMap_IOSSDK_v6.6.5_Docs 6.6.5
    | 
此类用于定义一段折线 更多...
#include <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 | 
| BMKCoordAlgorithm | thin | 
| float | thinFactor | 
| 抽稀算法系数,默认4,since 6.6.3 | |
| BMKCoordAlgorithm | smooth | 
| float | smoothFactor | 
| 平滑算法系数,默认16,since 6.6.3 | |
| BMKMapAnimation * | animation | 
| 轨迹动画,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapTrackAnimation,since 6.6.3 | |
| 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处理 | 
| 
 | readwritenonatomicstrong | 
轨迹动画,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapTrackAnimation,since 6.6.3
| 
 | readwritenonatomicassign | 
是否需要对Polyline坐标数据进行抽稀,默认为YES since 5.3.0
| 
 | readwritenonatomicassign | 
折线经度跨180所需字段 since 6.3.0 不跨180为kBMKLineDirectionCross180TypeNone, 从东往西为kBMKLineDirectionCross180TypeEAST_TO_WEST 从西往东为kBMKLineDirectionCross180TypeWEST_TO_EAST 默认kBMKLineDirectionCross180TypeNone
| 
 | readwritenonatomicassign | 
是否需要对Polyline坐标数据进行平滑算法处理,默认为kBMKAlgorithmNone,可设置kBMKBezierSmooth Bezier平滑 since 6.6.3
| 
 | readwritenonatomicassign | 
平滑算法系数,默认16,since 6.6.3
| 
 | readwritenonatomicassign | 
是否需要对Polyline坐标数据进行抽稀算法处理,默认为kBMKDouglasPeucker,对齐isThined默认为YES,可设置kBMKDouglasPeucker 道格拉斯抽稀 since 6.6.3
| 
 | readwritenonatomicassign | 
抽稀算法系数,默认4,since 6.6.3