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 注意:渐变发光模式下该属性生效
read / write
bounds → Future<BMFCoordinateBounds?>
返回overlay外接矩形 since 3.1.0
read-onlyoverride
className ↔ String?
类名
read / writeinherited
coordinates ↔ List<BMFCoordinate>
经纬度数组三个点确定一条弧线
read / write
customMap ↔ Map?
开发者自定义字段
read / writeinherited
fillColor ↔ Color?
填充色
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
Id → String
获取id
read-onlyinherited
id → String
获取id since 3.2.0
read-onlyinherited
isCornerSmooth ↔ bool?
是否需要对TraceOverlay坐标数据进拐角平滑,默认为true since 3.5.0
read / write
isGradientColor ↔ bool?
是否使用渐变色 默认为false since 3.5.0 注意:要配合strokeColors使用,否则无效
read / write
isThined ↔ bool?
是否需要对TraceOverlay坐标数据进行抽稀,默认为true since 3.5.0
read / write
isTrackBloom ↔ bool?
是否使用发光效果 默认为false since 3.5.0
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
strokeColor ↔ Color?
边框颜色 IOS 独有参数
read / write
strokeColors ↔ List<Color>?
轨迹的strokeColors 用于颜色绘制 since 3.5.0 注意:strokeColors 长度与轨迹点的个数必须保持一致
read / write
traceOverlayAnimateOption BMFTraceOverlayAnimateOption
traceOverlay动画参数
read / write
visible ↔ bool?
overlay是否可见
read / writeinherited
width ↔ int?
设置arclineView的线宽度
read / write
zIndex ↔ int?
元素的堆叠顺序
read / writeinherited

Methods

fromMap(Map map) → dynamic
map -> dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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