百度地图SDK for iOS v3.4.4 类参考
BMKPolyline.h
1 /*
2  * BMKPolyline.h
3  * BMapKit
4  *
5  * Copyright 2011 Baidu Inc. All rights reserved.
6  *
7  */
8 
9 #import "BMKMultiPoint.h"
10 #import "BMKOverlay.h"
11 
13 @interface BMKPolyline : BMKMultiPoint <BMKOverlay>
14 
21 + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
22 
29 + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
30 
37 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count;
38 
45 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count;
46 
47 
48 #pragma mark - 以下方法和属性只适用于分段纹理绘制和分段颜色绘制
49 
51 @property (nonatomic, strong) NSArray *textureIndex;
52 
64 + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count textureIndex:(NSArray*) textureIndex;
65 
77 + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count textureIndex:(NSArray*) textureIndex;
78 
86 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count textureIndex:(NSArray*) textureIndex;
87 
95 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count textureIndex:(NSArray*) textureIndex;
96 
97 @end
此类用于定义一段折线
Definition: BMKPolyline.h:13
NSArray * textureIndex
纹理索引数组(颜色索引数组)
Definition: BMKPolyline.h:51
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:14
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:112