BaiduMap_IOSSDK_v5.2.0_Docs
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 
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<NSNumber *> *textureIndex;
52 
53 
65 + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count textureIndex:(NSArray<NSNumber *> *) textureIndex;
66 
78 + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count textureIndex:(NSArray<NSNumber *> *) textureIndex;
79 
87 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count textureIndex:(NSArray<NSNumber *> *) textureIndex;
88 
96 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count textureIndex:(NSArray<NSNumber *> *) textureIndex;
97 
98 @end
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:13
此类用于定义一段折线
Definition: BMKPolyline.h:13
NSArray< NSNumber * > * textureIndex
纹理索引数组(颜色索引数组)
Definition: BMKPolyline.h:51
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:14
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:166