BaiduMap_IOSSDK_v6.6.5_Docs 6.6.5
载入中...
搜索中...
未找到
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@class BMKMapAnimation;
13
14NS_ASSUME_NONNULL_BEGIN
17
20@property (nonatomic, assign) BOOL isThined;
21
24@property (nonatomic, assign) BMKCoordAlgorithm thin;
26@property (nonatomic, assign) float thinFactor;
29@property (nonatomic, assign) BMKCoordAlgorithm smooth;
31@property (nonatomic, assign) float smoothFactor;
32
34@property (nonatomic, strong, nullable) BMKMapAnimation *animation;
35
42
47+ (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
48
53+ (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
54
59- (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
60
65- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
66
67
68#pragma mark - 以下方法和属性只适用于分段纹理绘制和分段颜色绘制
69
76@property (nonatomic, copy, nullable) NSArray<NSNumber *> *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs");
77
85+ (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points
86 count:(NSUInteger)count
87 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithPoints:count:drawIndexs:替换");
88
96+ (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords
97 count:(NSUInteger)count
98 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithCoordinates:count:drawIndexs:替换");
99
105- (BOOL)setPolylineWithPoints:(BMKMapPoint *)points
106 count:(NSUInteger)count
107 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithPoints:count:drawIndexs:替换");
108
114- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords
115 count:(NSUInteger)count
116 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithCoordinates:count:drawIndexs:替换");
117
118@end
119NS_ASSUME_NONNULL_END
BMKCoordAlgorithm
Definition BMKLineDrawType.h:69
BMKLineDirectionCross180Type
line跨经度180方式
Definition BMKLineDrawType.h:42
Definition BMKMapAnimation.h:70
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition BMKMultiPoint.h:18
此类用于定义一段折线
Definition BMKPolyline.h:16
BMKCoordAlgorithm thin
Definition BMKPolyline.h:24
BMKLineDirectionCross180Type lineDirectionCross180
Definition BMKPolyline.h:41
BOOL isThined
Definition BMKPolyline.h:20
float smoothFactor
平滑算法系数,默认16,since 6.6.3
Definition BMKPolyline.h:31
BMKMapAnimation * animation
轨迹动画,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapTrackAnimation,since 6.6....
Definition BMKPolyline.h:34
float thinFactor
抽稀算法系数,默认4,since 6.6.3
Definition BMKPolyline.h:26
NSArray< NSNumber * > *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs")
颜色/纹理索引数组
BMKCoordAlgorithm smooth
Definition BMKPolyline.h:29
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition BMKOverlay.h:17
地理坐标点,用直角地理坐标表示
Definition BMKTypes.h:222