BaiduMap_IOSSDK_v6.6.7_Docs 6.6.7

BMKTraceOverlay.h
浏览该文件的文档.
1 //
2 // BMKTraceOverlay.h
3 // MapComponent
4 //
5 // Created by Baidu on 2021/5/13.
6 // Copyright © 2021 Baidu. All rights reserved.
7 //
8
9 #import "BMKMultiPoint.h"
10 #import "BMKOverlay.h"
11 #import "BMKTraceOverlayOption.h"
12
13 @class BMKTraceOverlay;
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 @protocol BMKTraceOverlayAnimationDelegate <NSObject>
18
19 @optional
21 - (void)traceOverlayAnimationDidStart:(BMKTraceOverlay *)traceOverlay;
22
26 - (void)traceOverlay:(BMKTraceOverlay *)traceOverlay animationRunningProgress:(CGFloat)progress;
27
31 - (void)traceOverlay:(BMKTraceOverlay *)traceOverlay animationTraceMovePosition:(CLLocationCoordinate2D)position;
32
36 - (void)traceOverlay:(BMKTraceOverlay *)traceOverlay animationDidEnd:(BOOL)flag;
37
38 @end
39
40 @interface BMKTraceOverlay : BMKMultiPoint <BMKOverlay>
42 @property (nonatomic, weak, nullable) id<BMKTraceOverlayAnimationDelegate> delegate;
44 @property (nonatomic, strong, readonly) BMKTraceOverlayOption *overlayOption;
46 @property (nonatomic, assign) BOOL isGradientColor;
48 @property (nonatomic, assign) BOOL isTrackBloom;
52 @property (nonatomic, assign) CGFloat bloomSpeed;
54 @property (nonatomic, assign, readonly) BOOL onPauseStatus;
56 @property (nonatomic, assign, readonly) BOOL isStatusChanged;
58 - (void)pauseTraceOverlayDraw;
60 - (void)resumeTraceOverlayDraw;
61
62
64 @property (nonatomic, assign) BOOL isThined;
66 @property (nonatomic, assign) BOOL isCornerSmooth;
67
72 + (nullable instancetype)traceOverlayWithCoordinates:(CLLocationCoordinate2D *)coords
73 count:(NSUInteger)count
74 option:(BMKTraceOverlayOption *)overlayOption;
75
80 + (nullable instancetype)traceOverlayWithPoints:(BMKMapPoint *)points
81 count:(NSUInteger)count
82 option:(BMKTraceOverlayOption *)overlayOption;
83
88 - (BOOL)updateTraceOverlayCoordinates:(CLLocationCoordinate2D *)coords
89 count:(NSUInteger)count
90 option:(BMKTraceOverlayOption *)overlayOption;
91
96 - (BOOL)updateTraceOverlayPoints:(CLLocationCoordinate2D *)coords
97 count:(NSUInteger)count
98 option:(BMKTraceOverlayOption *)overlayOption;
99
100 @end
101
102 NS_ASSUME_NONNULL_END
BMKTraceOverlay::bloomSpeed
CGFloat bloomSpeed
Definition: BMKTraceOverlay.h:52
BMKTraceOverlay
Definition: BMKTraceOverlay.h:40
BMKTraceOverlayOption.h
BMKTraceOverlayAnimationDelegate-p
Definition: BMKTraceOverlay.h:17
BMKMapPoint
地理坐标点，用直角地理坐标表示
Definition: BMKTypes.h:228
BMKTraceOverlay::isStatusChanged
BOOL isStatusChanged
当前轨迹的状态是否改变，标记轨迹是否从运行状态进入暂停状态。 since 6.5.9
Definition: BMKTraceOverlay.h:56
BMKOverlay.h
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKTraceOverlay::delegate
id< BMKTraceOverlayAnimationDelegate > delegate
动画代理
Definition: BMKTraceOverlay.h:42
BMKTraceOverlay::onPauseStatus
BOOL onPauseStatus
轨迹动画暂停状态 since 6.5.9
Definition: BMKTraceOverlay.h:54
BMKTraceOverlay::isTrackBloom
BOOL isTrackBloom
是否使用发光效果 默认为NO since 6.5.7
Definition: BMKTraceOverlay.h:48
BMKTraceOverlay::isCornerSmooth
BOOL isCornerSmooth
是否需要对TraceOverlay坐标数据进拐角平滑，默认为YES
Definition: BMKTraceOverlay.h:66
-[BMKTraceOverlay resumeTraceOverlayDraw]
void resumeTraceOverlayDraw()
继续轨迹动画绘制 since 6.5.9
BMKTraceOverlay::isGradientColor
BOOL isGradientColor
是否使用渐变色 默认为NO since 6.5.7
Definition: BMKTraceOverlay.h:46
BMKMultiPoint.h
BMKTraceOverlay::overlayOption
BMKTraceOverlayOption * overlayOption
动画参数
Definition: BMKTraceOverlay.h:44
BMKTraceOverlayOption
Definition: BMKTraceOverlayOption.h:38
BMKMultiPoint
该类定义多个点，是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18
-[BMKTraceOverlay pauseTraceOverlayDraw]
void pauseTraceOverlayDraw()
暂停轨迹动画绘制 since 6.5.9
BMKTraceOverlay::isThined
BOOL isThined
是否需要对TraceOverlay坐标数据进行抽稀，默认为YES
Definition: BMKTraceOverlay.h:64