BaiduMap_IOSSDK_v5.4.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 
16 @property (nonatomic, assign) BOOL isThined;
17 
24 + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
25 
32 + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
33 
40 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count;
41 
48 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count;
49 
50 
51 #pragma mark - 以下方法和属性只适用于分段纹理绘制和分段颜色绘制
52 
54 @property (nonatomic, strong) NSArray<NSNumber *> *textureIndex;
55 
56 
68 + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count textureIndex:(NSArray<NSNumber *> *) textureIndex;
69 
81 + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count textureIndex:(NSArray<NSNumber *> *) textureIndex;
82 
90 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count textureIndex:(NSArray<NSNumber *> *) textureIndex;
91 
99 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count textureIndex:(NSArray<NSNumber *> *) textureIndex;
100 
101 @end
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:13
此类用于定义一段折线
Definition: BMKPolyline.h:13
BOOL isThined
是否需要对Polyline坐标数据进行抽稀,默认为YES
Definition: BMKPolyline.h:16
NSArray< NSNumber * > * textureIndex
纹理索引数组(颜色索引数组)
Definition: BMKPolyline.h:54
BMKMapPoint * points
坐标点数组
Definition: BMKMultiPoint.h:23
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:14
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:190