BMFTraceOverlay class

动态轨迹 since 3.1.0

Inheritance
Implemented types
Available extensions

Constructors

BMFTraceOverlay({required List<BMFCoordinate> coordinates, required BMFTraceOverlayAnimateOption traceOverlayAnimateOption, int? width = 5, Color? strokeColor = Colors.blue, Color? fillColor = Colors.green, bool? isTrackBloom = false, bool? isGradientColor = false, double? bloomSpeed = 5.0, bool? isThined = true, bool? isCornerSmooth = true, List<Color>? strokeColors = const [], int zIndex = 0, bool visible = true})
动态轨迹构造方法
BMFTraceOverlay.fromMap(Map map)
map => BMFTraceOverlay

Properties

bloomSpeed double?
轨迹发光参数 since 3.5.0 取值范围 1.0f ~ 10.0f,默认值为 5.0f 注意:渐变发光模式下该属性生效
getter/setter pair
bounds Future<BMFCoordinateBounds?>
返回overlay外接矩形 since 3.1.0
no setteroverride
className String?
类名
getter/setter pairinherited
coordinates List<BMFCoordinate>
经纬度数组三个点确定一条弧线
getter/setter pair
customMap Map?
开发者自定义字段
getter/setter pairinherited
fillColor Color?
填充色
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
Id String
获取id
no setterinherited
id String
获取id since 3.2.0
no setterinherited
isCornerSmooth bool?
是否需要对TraceOverlay坐标数据进拐角平滑,默认为true since 3.5.0
getter/setter pair
isGradientColor bool?
是否使用渐变色 默认为false since 3.5.0 注意:要配合strokeColors使用,否则无效
getter/setter pair
isThined bool?
是否需要对TraceOverlay坐标数据进行抽稀,默认为true since 3.5.0
getter/setter pair
isTrackBloom bool?
是否使用发光效果 默认为false since 3.5.0
getter/setter pair
methodChannel MethodChannel

Available on BMFOverlay, provided by the OverlayMethodChannelExension extension

获取channel
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color?
边框颜色 IOS 独有参数
getter/setter pair
strokeColors List<Color>?
轨迹的strokeColors 用于颜色绘制 since 3.5.0 注意:strokeColors 长度与轨迹点的个数必须保持一致
getter/setter pair
traceOverlayAnimateOption BMFTraceOverlayAnimateOption
traceOverlay动画参数
getter/setter pair
visible bool?
overlay是否可见
getter/setter pairinherited
width int?
设置arclineView的线宽度
getter/setter pair
zIndex int?
元素的堆叠顺序
getter/setter pairinherited

Methods

fromMap(Map map) → dynamic
map -> dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseTraceOverlayDraw() Future<bool>

Available on BMFTraceOverlay, provided by the BMFTraceOverlayUpdateExtension extension

暂停动态轨迹绘制 since 3.6.0
resumeTraceOverlayDraw() Future<bool>

Available on BMFTraceOverlay, provided by the BMFTraceOverlayUpdateExtension extension

继续动态轨迹绘制 since 3.6.0
toMap() Map<String, Object?>
model -> map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited