BMFPolyline class

折线

Inheritance
Implemented types
Available extensions

Constructors

BMFPolyline({required List<BMFCoordinate> coordinates, List<int>? indexs = const [], int? width = 5, List<Color>? colors = const [], List<String>? textures = const [], bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
BMFPolyline构造方法
BMFPolyline.colorline({required List<BMFCoordinate> coordinates, required Color strokerColor, int? width = 5, bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
单色折线构造方法
BMFPolyline.fromMap(Map map)
map => BMFPolyline
BMFPolyline.multiColorline({required List<BMFCoordinate> coordinates, required List<Color>? colors, required List<int>? indexs, int? width = 5, bool? dottedLine = true, BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone, double? lineBloomWidth = 0.0, double? lineBloomAlpha = 255.0, double? lineBloomGradientASPeed = 5.0, int? lineBloomBlurTimes = 0, int zIndex = 0, bool visible = true, Map? customMap})
多颜色折线构造方法
BMFPolyline.multiTextureline({required List<BMFCoordinate> coordinates, required List<String>? textures, required List<int>? indexs, int? width = 5, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true, Map? customMap})
多纹理折线构造方法
BMFPolyline.textureline({required List<BMFCoordinate> coordinates, required String texture, int? width = 5, BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt, BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true, Map? customMap})
单纹理折线构造方法

Properties

bounds → Future<BMFCoordinateBounds?>
返回overlay外接矩形 since 3.1.0
no setteroverride
className ↔ String?
类名
getter/setter pairinherited
clickable ↔ bool?
是否可点击
getter/setter pair
colors ↔ List<Color>?
颜色折线的colors 用于颜色绘制
getter/setter pair
coordinates ↔ List<BMFCoordinate>
经纬度数组
getter/setter pair
customMap ↔ Map?
开发者自定义字段
getter/setter pairinherited
dottedLine ↔ bool?
设置折线是否虚线(Android独有)
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
indexs ↔ List<int>?
分段索引(多纹理,多颜色折线请赋值)
getter/setter pair
isFocus ↔ bool?
是否可以被选中,获得焦点,默认true
getter/setter pair
isKeepScale ↔ bool?
纹理宽、高是否保持原比例渲染,默认为false
getter/setter pair
isThined ↔ bool?
是否抽稀 默认ture
getter/setter pair
lineBloomAlpha ↔ double?
发光处透明度,取值范围 0 ~ 255,默认 255.0f;
getter/setter pair
lineBloomBlurTimes ↔ int?
设置模糊发光效果的模糊次数(1~10) 默认1次
getter/setter pair
lineBloomGradientASPeed ↔ double?
透明度渐变速度 取值范围 1.0f ~ 10.0f,默认值为 5.0f 注意:渐变发光模式下该属性生效
getter/setter pair
lineBloomMode BMFLineBloomMode?
发光模式,仅支持颜色实折线;
getter/setter pair
lineBloomWidth ↔ double?
发光处宽度,默认 0.0f;
getter/setter pair
lineCapType BMFLineCapType?
line头尾处理方式(不支持虚线) 默认普通头 LineCapButt,
getter/setter pair
lineDashType BMFLineDashType?
虚线绘制样式 默认实折线 BMFLineDashTypeNone
getter/setter pair
lineDirectionCross180 BMFLineDirectionCross180Type?
折线经度跨180所需字段 since 3.1.0
getter/setter pair
lineJoinType BMFLineJoinType?
line拐角处理方式(不支持虚线)默认平角衔接 LineJoinBevel,
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
textures ↔ List<String>?
纹理折线的纹理图片路径 用于纹理绘制
getter/setter pair
visible ↔ bool?
overlay是否可见
getter/setter pairinherited
width ↔ int?
线宽
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
toMap() → Map<String, Object?>
model -> map
override
toString() → String
A string representation of this object.
inherited
updateClickable(bool clickable) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新polyLine是否可点击
updateColors(List<Color> colors, {List<int>? indexs}) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新colors
updateCoordinates(List<BMFCoordinate> coordinates, {List<int>? indexs}) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新经纬度数组
updateDottedLine(bool dottedLine) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新是否设置虚线
updateIndexs(List<int> indexs) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新索引 【Android】
updateIsFocus(bool isFocus) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新是否可以被选中,获得焦点
updateIsKeepScale(bool isKeepScale) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新纹理宽、高是否保持原比例渲染
updateLineBloomAlpha(double lineBloomAlpha) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineBloomAlpha
updateLineBloomBlurTimes(int lineBloomBlurTimes) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineBloomBlurTimes
updateLineBloomGradientASPeed(double lineBloomGradientASPeed) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineBloomGradientASPeed
updateLineBloomMode(BMFLineBloomMode lineBloomMode) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineBloomMode
updateLineBloomWidth(double lineBloomWidth) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineBloomWidth
updateLineCapType(BMFLineCapType lineCapType) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新折线头尾处理方式
updateLineDashType(BMFLineDashType lineDashType) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新折线绘制样式
updateLineDirectionCross180(BMFLineDirectionCross180Type lineDirectionCross180) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新lineDirectionCross180
updateLineJoinType(BMFLineJoinType lineJoinType) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新折线拐角处理方式
updateTextures(List<String> textures) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新纹理textures (iOS 暂不支持)
updateThined(bool isThined) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新polyline是否抽稀
updateVisible(bool visible) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新polyline是否显示
updateWidth(int width) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新线宽
updateZIndex(int zIndex) → Future<bool>

Available on BMFPolyline, provided by the BMFPolylineUpdate extension

更新z轴方向上的堆叠顺序

Operators

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