BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
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"
12
13@class BMKTraceOverlay;
14
15NS_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
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;
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
102NS_ASSUME_NONNULL_END
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition BMKMultiPoint.h:18
Definition BMKTraceOverlay.h:40
BMKTraceOverlayOption * overlayOption
动画参数
Definition BMKTraceOverlay.h:44
CGFloat bloomSpeed
Definition BMKTraceOverlay.h:52
BOOL isGradientColor
是否使用渐变色 默认为NO since 6.5.7
Definition BMKTraceOverlay.h:46
BOOL isTrackBloom
是否使用发光效果 默认为NO since 6.5.7
Definition BMKTraceOverlay.h:48
void resumeTraceOverlayDraw()
继续轨迹动画绘制 since 6.5.9
BOOL isCornerSmooth
是否需要对TraceOverlay坐标数据进拐角平滑,默认为YES
Definition BMKTraceOverlay.h:66
BOOL isStatusChanged
当前轨迹的状态是否改变,标记轨迹是否从运行状态进入暂停状态。 since 6.5.9
Definition BMKTraceOverlay.h:56
BOOL onPauseStatus
轨迹动画暂停状态 since 6.5.9
Definition BMKTraceOverlay.h:54
void pauseTraceOverlayDraw()
暂停轨迹动画绘制 since 6.5.9
BOOL isThined
是否需要对TraceOverlay坐标数据进行抽稀,默认为YES
Definition BMKTraceOverlay.h:64
id< BMKTraceOverlayAnimationDelegate > delegate
动画代理
Definition BMKTraceOverlay.h:42
Definition BMKTraceOverlayOption.h:38
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition BMKOverlay.h:17
地理坐标点,用直角地理坐标表示
Definition BMKTypes.h:189