BaiduMap_IOSSDK_v5.2.0_Docs
构造函数 | 类方法 | 属性 | 所有成员列表
BMKPolyline类 参考

此类用于定义一段折线 更多...

#import <BMKPolyline.h>

类 BMKPolyline 继承关系图:
BMKMultiPoint <BMKOverlay> BMKMultiPoint <BMKOverlay> <BMKAnnotation> <BMKAnnotation> BMKShape BMKShape <BMKAnnotation> <BMKAnnotation> BMKShape BMKShape

构造函数

(BOOL) - setPolylineWithPoints:count:
 
(BOOL) - setPolylineWithCoordinates:count:
 
(BOOL) - setPolylineWithPoints:count:textureIndex:
 
(BOOL) - setPolylineWithCoordinates:count:textureIndex:
 
(BOOL) - setPolylineWithPoints:count:
 
(BOOL) - setPolylineWithCoordinates:count:
 
(BOOL) - setPolylineWithPoints:count:textureIndex:
 
(BOOL) - setPolylineWithCoordinates:count:textureIndex:
 
- 构造函数 继承自 BMKMultiPoint
(void) - getCoordinates:range:
 
(void) - getCoordinates:range:
 
- 构造函数 继承自 <BMKAnnotation>
(NSString *) - title
 
(NSString *) - subtitle
 
(void) - setCoordinate:
 
(NSString *) - title
 
(NSString *) - subtitle
 
(void) - setCoordinate:
 
- 构造函数 继承自 <BMKOverlay>
(BOOL) - intersectsMapRect:
 
(BOOL) - intersectsMapRect:
 

类方法

(BMKPolyline *) + polylineWithPoints:count:
 
(BMKPolyline *) + polylineWithCoordinates:count:
 
(BMKPolyline *) + polylineWithPoints:count:textureIndex:
 
(BMKPolyline *) + polylineWithCoordinates:count:textureIndex:
 
(BMKPolyline *) + polylineWithPoints:count:
 
(BMKPolyline *) + polylineWithCoordinates:count:
 
(BMKPolyline *) + polylineWithPoints:count:textureIndex:
 
(BMKPolyline *) + polylineWithCoordinates:count:textureIndex:
 

属性

NSArray< NSNumber * > * textureIndex
 纹理索引数组(颜色索引数组)
 
- 属性 继承自 BMKMultiPoint
BMKMapPointpoints
 坐标点数组
 
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
 

详细描述

此类用于定义一段折线

函数文档

◆ polylineWithCoordinates:count:() [1/2]

+ (BMKPolyline *) polylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

根据指定坐标点生成一段折线

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
返回
新生成的折线对象

◆ polylineWithCoordinates:count:() [2/2]

+ (BMKPolyline *) polylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

根据指定坐标点生成一段折线

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
返回
新生成的折线对象

◆ polylineWithCoordinates:count:textureIndex:() [1/2]

+ (BMKPolyline *) polylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

根据指定坐标点生成一段折线

分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
新生成的折线对象

◆ polylineWithCoordinates:count:textureIndex:() [2/2]

+ (BMKPolyline *) polylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

根据指定坐标点生成一段折线

分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
新生成的折线对象

◆ polylineWithPoints:count:() [1/2]

+ (BMKPolyline *) polylineWithPoints: (BMKMapPoint *)  points
count: (NSUInteger)  count 

根据指定坐标点生成一段折线

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
返回
新生成的折线对象

◆ polylineWithPoints:count:() [2/2]

+ (BMKPolyline *) polylineWithPoints: (BMKMapPoint *)  points
count: (NSUInteger)  count 

根据指定坐标点生成一段折线

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
返回
新生成的折线对象

◆ polylineWithPoints:count:textureIndex:() [1/2]

+ (BMKPolyline *) polylineWithPoints: (BMKMapPoint *)  points
count: (NSUInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

分段纹理绘制/分段颜色绘制,根据指定坐标点生成一段折线

分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
新生成的折线对象

◆ polylineWithPoints:count:textureIndex:() [2/2]

+ (BMKPolyline *) polylineWithPoints: (BMKMapPoint *)  points
count: (NSUInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

分段纹理绘制/分段颜色绘制,根据指定坐标点生成一段折线

分段纹理绘制:其对应的BMKPolylineView必须使用 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 分段颜色绘制:其对应的BMKPolylineView必须设置colors属性

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
新生成的折线对象

◆ setPolylineWithCoordinates:count:() [1/2]

- (BOOL) setPolylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSInteger)  count 

重新设置折线坐标点

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
返回
是否设置成功

◆ setPolylineWithCoordinates:count:() [2/2]

- (BOOL) setPolylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSInteger)  count 

重新设置折线坐标点

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
返回
是否设置成功

◆ setPolylineWithCoordinates:count:textureIndex:() [1/2]

- (BOOL) setPolylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

重新设置折线坐标点

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
是否设置成功

◆ setPolylineWithCoordinates:count:textureIndex:() [2/2]

- (BOOL) setPolylineWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

重新设置折线坐标点

参数
coords指定的经纬度坐标点数组
countcoords数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
是否设置成功

◆ setPolylineWithPoints:count:() [1/2]

- (BOOL) setPolylineWithPoints: (BMKMapPoint *)  points
count: (NSInteger)  count 

重新设置折线坐标点

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
返回
是否设置成功

◆ setPolylineWithPoints:count:() [2/2]

- (BOOL) setPolylineWithPoints: (BMKMapPoint *)  points
count: (NSInteger)  count 

重新设置折线坐标点

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
返回
是否设置成功

◆ setPolylineWithPoints:count:textureIndex:() [1/2]

- (BOOL) setPolylineWithPoints: (BMKMapPoint *)  points
count: (NSInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

重新设置折线坐标点 和 纹理索引

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
是否设置成功

◆ setPolylineWithPoints:count:textureIndex:() [2/2]

- (BOOL) setPolylineWithPoints: (BMKMapPoint *)  points
count: (NSInteger)  count
textureIndex: (NSArray< NSNumber * > *)  textureIndex 

重新设置折线坐标点 和 纹理索引

参数
points指定的直角坐标点数组
countpoints数组中坐标点的个数
textureIndex纹理索引数组(颜色索引数组),成员为NSNumber,且为非负数,负数按0处理
返回
是否设置成功

该类的文档由以下文件生成: