BaiduMap_IOSSDK_v6.2.0_Docs  6.2.0
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 + (instancetype)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
25 
32 + (instancetype)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 + (instancetype)polylineWithPoints:(BMKMapPoint *)points
69  count:(NSUInteger)count
70  textureIndex:(NSArray<NSNumber *> *) textureIndex;
71 
83 + (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords
84  count:(NSUInteger)count
85  textureIndex:(NSArray<NSNumber *> *)textureIndex;
86 
94 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points
95  count:(NSInteger)count
96  textureIndex:(NSArray<NSNumber *> *)textureIndex;
97 
105 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords
106  count:(NSInteger)count
107  textureIndex:(NSArray<NSNumber *> *)textureIndex;
108 
109 @end
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18
BMKMapPoint * points
坐标点数组
Definition: BMKMultiPoint.h:27
此类用于定义一段折线
Definition: BMKPolyline.h:13
BOOL isThined
是否需要对Polyline坐标数据进行抽稀,默认为YES
Definition: BMKPolyline.h:16
NSArray< NSNumber * > * textureIndex
纹理索引数组(颜色索引数组)
Definition: BMKPolyline.h:54
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:192