Marker class

点覆盖物的类

Inheritance

Constructors

Marker({@required LatLng position, double alpha: 1.0, Offset anchor: const Offset(0.5, 0.5), bool clickable: true, bool draggable: false, BitmapDescriptor icon: BitmapDescriptor.defaultMarker, bool infoWindowEnable: true, InfoWindow infoWindow: InfoWindow.noText, double rotation: 0.0, bool visible: true, double zIndex: 0.0, ArgumentCallback<String> onTap, MarkerDragEndCallback onDragEnd})

Properties

alpha double
透明度
final
anchor Offset
覆盖物视图相对地图上的经纬度位置的锚点
final
clickable bool
是否可点击,默认为true
final
draggable bool
是否可拖拽,默认为false
final
hashCode int
The hash code for this object. [...]
read-only, override
icon BitmapDescriptor
覆盖物的图标
final
id String
read-only, inherited
infoWindow InfoWindow
覆盖物上的气泡,当被点击时,如果infoWindowEnable为true,则会显示出来
final
infoWindowEnable bool
是否显示气泡,如果为true,则点击Marker后,会显示该气泡InfoWindow 如果为false,则始终不会显示该气泡
final
onDragEnd MarkerDragEndCallback
Marker被拖拽结束的回调
final
onTap → ArgumentCallback<String>
回调的参数是对应的id
final
position → LatLng
位置,不能为空
final
rotation double
旋转角度
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
visible bool
是否可见
final
zIndex double
z轴的值,用于调整该覆盖物的相对绘制层级关系 值越小,图层越靠下,iOS该值不支持动态修改,仅能在初始化时指定
final

Methods

clone() Marker
override
copyWith({double alphaParam, Offset anchorParam, bool clickableParam, bool draggableParam, BitmapDescriptor iconParam, bool infoWindowEnableParam, InfoWindow infoWindowParam, LatLng positionParam, double rotationParam, bool visibleParam, VoidCallback onTapParam, ValueChanged<LatLng> onDragEndParam}) Marker
copy的真正复制的参数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setIdForCopy(String copyId) → void
inherited
toMap() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
override

Operators

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