BMFGround class

该类用于定义一个图片图层

Inheritance

Constructors

BMFGround({@required String image, double width, double height, double anchorX, double anchorY, int zoomLevel, BMFCoordinateBounds bounds, BMFCoordinate position, double transparency: 1.0, int zIndex: 0, bool visible: true})
BMFGround构造方法
BMFGround.fromMap(Map map)
map => BMFGround

Properties

anchorX ↔ double
用位置绘制时图片的锚点x,图片左上角为(0.0f,0.0f),向右向下为正 [...]
read / write
anchorY ↔ double
用位置绘制时图片的锚点y,图片左上角为(0.0f,0.0f),向右向下为正 [...]
read / write
bounds ↔ BMFCoordinateBounds
两种绘制GroundOverlay的方式之二:绘制的地理区域范围,图片在此区域内合理缩放
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
height ↔ double
read / write
Id → String
获取id
read-only, inherited
image ↔ String
绘制图片
read / write
methodChannel ↔ MethodChannel
获取channdel
read / write, inherited
position ↔ BMFCoordinate
两种绘制GroundOverlay的方式之一:绘制的位置地理坐标,与anchor配对使用
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
transparency ↔ double
图片纹理透明度,最终透明度 = 纹理透明度 * alpha,取值范围为【0.0f, 1.0f】,默认为1.0f
read / write
visible ↔ bool
overlay是否可见 [...]
read / write, inherited
width ↔ double
read / write
zIndex ↔ int
元素的堆叠顺序 [...]
read / write, inherited
zoomLevel ↔ int
缩放级别(仅ios支持)
read / write

Methods

fromMap(Map map) → dynamic
map -> dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() → Map<String, Object>
model -> map
override
toString() → String
Returns a string representation of this object.
inherited
updateAnchorX(double anchorX) → Future<bool>
更新位置绘制时图片的锚点x, Android独有 [...]
updateAnchorY(double anchorY) → Future<bool>
更新位置绘制时图片的锚点y, Android独有 [...]
updateBounds(BMFCoordinateBounds bounds) → Future<bool>
更新绘制的地理区域范围, Android独有 [...]
updateDimensions(double width, double height) → Future<bool>
更新宽、高, Android独有 [...]
updateImage(String image) → Future<bool>
更新图片, Android独有 [...]
updatePosition(BMFCoordinate position) → Future<bool>
更新Ground 位置, Android独有 [...]
updateTransparency(double transparency) → Future<bool>
更新透明度, Android独有 [...]

Operators

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