BMFGround class

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

Inheritance
Available extensions

Constructors

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

Properties

anchorX double?
用位置绘制时图片的锚点x,图片左上角为(0.0f,0.0f),向右向下为正
getter/setter pair
anchorY double?
用位置绘制时图片的锚点y,图片左上角为(0.0f,0.0f),向右向下为正
getter/setter pair
bounds ↔ BMFCoordinateBounds?
两种绘制GroundOverlay的方式之二:绘制的地理区域范围,图片在此区域内合理缩放
getter/setter pair
className String?
类名
getter/setter pairinherited
clickable bool?
是否可点击,默认为flase since 3.5.0
getter/setter pair
customMap Map?
开发者自定义字段
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
getter/setter pair
Id String
获取id
no setterinherited
id String
获取id since 3.2.0
no setterinherited
image String
绘制图片
getter/setter pair
methodChannel MethodChannel

Available on BMFOverlay, provided by the OverlayMethodChannelExension extension

获取channel
getter/setter pair
position ↔ BMFCoordinate?
两种绘制GroundOverlay的方式之一:绘制的位置地理坐标,与anchor配对使用
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transparency double?
图片纹理透明度,最终透明度 = 纹理透明度 * alpha,取值范围为【0.0f, 1.0f】,默认为1.0f
getter/setter pair
visible bool?
overlay是否可见
getter/setter pairinherited
width double?
getter/setter pair
zIndex int?
元素的堆叠顺序
getter/setter pairinherited
zoomLevel int?
缩放级别(仅ios支持)
getter/setter pair

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
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