此文件定义分段折线 since 6.5.0
更多...
#import <BMKMultiPolyline.h>
|
|
NSArray< NSNumber * > * | drawIndexs |
| | 颜色/纹理索引数组
|
| |
| BOOL | isThined |
| |
| BMKLineDirectionCross180Type | lineDirectionCross180 |
| |
|
BMKMapPoint * | points |
| | 坐标点数组
|
| |
|
NSUInteger | pointCount |
| | 坐标点的个数
|
| |
|
NSString * | title |
| | 要显示的标题;注意:如果不设置title,无法点击annotation,也无法使用回调函数;
|
| |
|
NSString * | subtitle |
| | 要显示的副标题
|
| |
|
CLLocationCoordinate2D | coordinate |
| | 标注view中心坐标.
|
| |
|
CLLocationCoordinate2D | coordinate |
| | 返回区域中心坐标.
|
| |
|
BMKMapRect | boundingMapRect |
| | 返回区域外接矩形
|
| |
◆ multiPolylineWithCoordinates:count:drawIndexs:
| + (nullable instancetype) multiPolylineWithCoordinates: |
|
(CLLocationCoordinate2D *) |
coords |
| count: |
|
(NSUInteger) |
count |
| drawIndexs: |
|
(NSArray< NSNumber * > *) |
drawIndexs |
|
|
| |
根据指定经纬度坐标点生成一段折线 分段纹理绘制:其对应的BMKMultiTexturePolylineView必须使用 textureImages 加载纹理图片; 分段颜色绘制:其对应的BMKMultiColorPolylineView必须设置strokeColors属性
- 参数
-
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| drawIndexs | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
- 返回
- 新生成的折线对象
◆ multiPolylineWithPoints:count:drawIndexs:
| + (nullable instancetype) multiPolylineWithPoints: |
|
(BMKMapPoint *) |
points |
| count: |
|
(NSUInteger) |
count |
| drawIndexs: |
|
(NSArray< NSNumber * > *) |
drawIndexs |
|
|
| |
根据指定直角坐标点生成一段折线 分段纹理绘制/分段颜色绘制,根据指定坐标点生成一段折线 分段纹理绘制:其对应的BMKMultiTexturePolylineView必须使用 textureImages 加载纹理图片; 分段颜色绘制:其对应的BMKMultiColorPolylineView必须设置strokeColors属性
- 参数
-
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| drawIndexs | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
- 返回
- 新生成的折线对象
◆ setMultiPolylineWithCoordinates:count:drawIndexs:
| - (BOOL) setMultiPolylineWithCoordinates: |
|
(CLLocationCoordinate2D *) |
coords |
| count: |
|
(NSUInteger) |
count |
| drawIndexs: |
|
(NSArray< NSNumber * > *) |
drawIndexs |
|
|
| |
重新设置折线经纬度 和 纹理索引
- 参数
-
| coords | 指定的经纬度坐标点数组 |
| count | coords数组中坐标点的个数 |
| drawIndexs | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
- 返回
- 是否设置成功
◆ setMultiPolylineWithPoints:count:drawIndexs:
| - (BOOL) setMultiPolylineWithPoints: |
|
(BMKMapPoint *) |
points |
| count: |
|
(NSUInteger) |
count |
| drawIndexs: |
|
(NSArray< NSNumber * > *) |
drawIndexs |
|
|
| |
重新设置折线坐标点 和 纹理索引
- 参数
-
| points | 指定的直角坐标点数组 |
| count | points数组中坐标点的个数 |
| drawIndexs | 纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理 |
- 返回
- 是否设置成功
该类的文档由以下文件生成: