BMFMarker class

大头针

Inheritance

Constructors

BMFMarker({@required BMFCoordinate position, @required String icon, String title, String subtitle, bool isLockedToScreen: false, BMFPoint screenPointToLock, String identifier, BMFPoint centerOffset, bool enabled3D, bool enabled: true, bool draggable: false, double scaleX: 1.0, double scaleY: 1.0, double alpha: 1.0, bool isPerspective, int zIndex: 0, bool visible: true})
BMFMarker构造方法
BMFMarker.withMap(Map map)

Properties

alpha ↔ double
透明度 [...]
read / write
centerOffset ↔ BMFPoint
默认情况下, annotation view的中心位于annotation的坐标位置, [...]
read / write
draggable ↔ bool
当设为true支持将view在地图上拖动
read / write
enabled ↔ bool
默认为true,当为false时view忽略触摸事件
read / write
enabled3D ↔ bool
默认情况下,标注没有3D效果,可以设置enabled3D改变使用3D效果, [...]
read / write
icon ↔ String
markView显示的图片
read / write
identifier ↔ String
markerView的复用标识符
read / write
isLockedToScreen ↔ bool
标注固定在指定屏幕位置, 必须与screenPointToLock一起使用。 [...]
read / write
isPerspective ↔ bool
在有俯仰角的情况下,是否近大远小 [...]
read / write
position ↔ BMFCoordinate
marker位置经纬度
read / write
scaleX ↔ double
x方向缩放倍数 [...]
read / write
scaleY ↔ double
y方向缩放倍数 [...]
read / write
screenPointToLock ↔ BMFPoint
标注锁定在屏幕上的位置, [...]
read / write
subtitle ↔ String
子标题 [...]
read / write
title ↔ String
标题
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
updateAlpha(double alpha) → Future<bool>
更新透明度
updateCenterOffset(BMFPoint centerOffset) → Future<bool>
更新marker centerOffset信息
updateDraggable(bool draggable) → Future<bool>
更新是否可拖拽
updateEnabled(bool enabled) → Future<bool>
更新marker是否响应触摸事件, true则响应,false则不响应
updateEnabled3D(bool enabled3D) → Future<bool>
更新marker是否显示3D效果
updateIcon(String icon) → Future<bool>
更新显示的图片
updateIsLockedToScreen(bool isLockedToScreen, BMFPoint screenPointToLock) → Future<bool>
更新是否锁定在屏幕上的位置 [...]
updateIsPerspective(bool isPerspective) → Future<bool>
更新近大远小的开关
updatePosition(BMFCoordinate position) → Future<bool>
更新位置经纬度
updateScaleX(double scaleX) → Future<bool>
更新x方向缩放倍数
updateScaleY(double scaleY) → Future<bool>
更新y方向缩放倍数
updateSubTitle(String subtitle) → Future<bool>
更新subTitle
updateTitle(String title) → Future<bool>
更新title
updateVisible(bool visible) → Future<bool>
更新marker是否显示
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

marker() BMFMarker