FlatMarker class

官方漏了flat参数,补上

Inheritance

Constructors

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

Methods

clone() Marker
override
copyWith({double? alphaParam, Offset? anchorParam, bool? clickableParam, bool? flatParam, bool? draggableParam, BitmapDescriptor? iconParam, bool? infoWindowEnableParam, InfoWindow? infoWindowParam, LatLng? positionParam, double? rotationParam, bool? visibleParam, ArgumentCallback<String?>? onTapParam, MarkerDragEndCallback? onDragEndParam}) FlatMarker
copy的真正复制的参数,主要用于需要修改某个属性参数时使用
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIdForCopy(String copyId) → void
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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