BaiduMap_IOSSDK_v6.6.1_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 #import "BMKLineDrawType.h"
12 
13 NS_ASSUME_NONNULL_BEGIN
16 
19 @property (nonatomic, assign) BOOL isThined;
20 
26 @property (nonatomic, assign) BMKLineDirectionCross180Type lineDirectionCross180;
27 
32 + (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
33 
38 + (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
39 
44 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
45 
50 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
51 
52 
53 #pragma mark - 以下方法和属性只适用于分段纹理绘制和分段颜色绘制
54 
60 @property (nonatomic, copy, nullable) NSArray<NSNumber *> *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs");
62 
70 + (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points
71  count:(NSUInteger)count
72  textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithPoints:count:drawIndexs:替换");
73 
81 + (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords
82  count:(NSUInteger)count
83  textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithCoordinates:count:drawIndexs:替换");
84 
90 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points
91  count:(NSUInteger)count
92  textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithPoints:count:drawIndexs:替换");
93 
99 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords
100  count:(NSUInteger)count
101  textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithCoordinates:count:drawIndexs:替换");
102 
103 @end
104 NS_ASSUME_NONNULL_END
-[BMKPolyline __deprecated_msg]
NSArray< NSNumber * > *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs")
颜色/纹理索引数组
BMKMapPoint
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:189
BMKPolyline
此类用于定义一段折线
Definition: BMKPolyline.h:15
BMKOverlay-p
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKPolyline::isThined
BOOL isThined
Definition: BMKPolyline.h:19
BMKPolyline::lineDirectionCross180
BMKLineDirectionCross180Type lineDirectionCross180
Definition: BMKPolyline.h:26
BMKMultiPoint
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18