BMFPolyline class
折线
- Inheritance
- Object
- BMFModel
- BMFOverlay
- BMFPolyline
Constructors
-
BMFPolyline({@required List<
BMFCoordinate> coordinates,@required List< int> indexs,int width: 5, List< Color> colors: const [],List< String> textures: const [],BMFLineDashType lineDashType: BMFLineDashType.LineDashTypeNone, BMFLineCapType lineCapType: BMFLineCapType.LineCapButt, BMFLineJoinType lineJoinType: BMFLineJoinType.LineJoinBevel, bool clickable: true, bool isKeepScale: true, bool isFocus: false, int zIndex: 0, bool visible: true} ) - BMFPolyline构造方法
-
BMFPolyline.withMap(Map map
)
Properties
- clickable ↔ bool
-
是否可点击 [...]
read / write
-
colors
↔ List<
Color> -
颜色折线的colors 用于颜色绘制 [...]
read / write
-
coordinates
↔ List<
BMFCoordinate> -
经纬度数组
read / write
-
indexs
↔ List<
int> -
分段索引(多纹理,多颜色折线请赋值)
read / write
- isFocus ↔ bool
-
是否可以被选中,获得焦点,默认false [...]
read / write
- isKeepScale ↔ bool
-
纹理宽、高是否保持原比例渲染,默认为true [...]
read / write
- lineCapType ↔ BMFLineCapType
-
line头尾处理方式(不支持虚线) 默认普通头 LineCapButt, [...]
read / write
- lineDashType ↔ BMFLineDashType
-
虚线绘制样式 默认实折线 BMFLineDashTypeNone [...]
read / write
- lineJoinType ↔ BMFLineJoinType
-
line拐角处理方式(不支持虚线)默认平角衔接 LineJoinBevel, [...]
read / write
-
textures
↔ List<
String> -
纹理折线的纹理图片路径 用于纹理绘制 [...]
read / write
- width ↔ int
-
线宽
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- visible ↔ bool
-
overlay是否可见 [...]
read / write, inherited
- zIndex ↔ int
-
元素的堆叠顺序
s
Android独有
read / write, inherited
Methods
-
fromMap(
Map map ) → dynamic -
map -> dynamic
override
-
toMap(
) → Map< String, Object> -
model -> map
override
-
updateClickable(
bool clickable ) → Future< bool> - 更新polyLine是否可点击
-
updateColors(
List< Color> colors,{List< int> indexs}) → Future< bool> - 更新colors [...]
-
updateCoordinates(
List< BMFCoordinate> coordinates,{List< int> indexs}) → Future< bool> - 更新经纬度数组 [...]
-
updateIndexs(
List< int> indexs) → Future< bool> - 更新索引 [...]
-
updateIsFocus(
bool isFocus ) → Future< bool> - 更新是否可以被选中,获得焦点
-
updateIsKeepScale(
bool isKeepScale ) → Future< bool> - 更新纹理宽、高是否保持原比例渲染
-
updateLineCapType(
BMFLineCapType lineCapType ) → Future< bool> - 更新折线头尾处理方式 [...]
-
updateLineDashType(
BMFLineDashType lineDashType ) → Future< bool> - 更新折线绘制样式 [...]
-
updateLineJoinType(
BMFLineJoinType lineJoinType ) → Future< bool> - 更新折线拐角处理方式式 [...]
-
updateTextures(
List< String> textures) → Future< bool> - 更新纹理textures (ios暂不支持)
-
updateVisible(
bool visible ) → Future< bool> - 更新polyline是否显示
-
updateWidth(
int width ) → Future< bool> - 更新索引线宽
-
updateZIndex(
int zIndex ) → Future< bool> - 更新z轴方向上的堆叠顺序
-
getId(
) → String -
inherited
-
getMethodChannel(
) → MethodChannel -
inherited
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setMethodChannel(
MethodChannel methodChannel ) → void -
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited
Static Methods
-
polyline(
) → BMFPolyline