LabelMarker class
Constructors
LabelMarker ({required String label , required MarkerId markerId , required LatLng position , Color backgroundColor = Colors.blueAccent , TextStyle textStyle = const TextStyle(fontSize: 27.0, color: Colors.white, letterSpacing: 1.0, fontFamily: 'Roboto Bold') , double alpha = 1.0 , Offset anchor = const Offset(0.5, 1.0) , bool consumeTapEvents = false , bool draggable = false , bool flat = false , BitmapDescriptor icon = BitmapDescriptor.defaultMarker , InfoWindow infoWindow = InfoWindow.noText , double rotation = 0.0 , bool visible = true , double zIndex = 0.0 , VoidCallback ? onTap , ValueChanged <LatLng > ? onDrag , ValueChanged <LatLng > ? onDragStart , ValueChanged <LatLng > ? onDragEnd })
Creates a marker with text label
Properties
alpha
→ double
The opacity of the marker, between 0.0 and 1.0 inclusive.
final
anchor
→ Offset
The icon image point that will be placed at the position of the marker.
final
backgroundColor
→ Color
Background color of the label marker.
final
consumeTapEvents
→ bool
True if the marker icon consumes tap events. If not, the map will perform
default tap handling by centering the map on the marker and displaying its
info window.
final
draggable
→ bool
True if the marker is draggable by user touch events.
final
flat
→ bool
True if the marker is rendered flatly against the surface of the Earth, so
that it will rotate and tilt along with map camera movements.
final
hashCode
→ int
The hash code for this object.
no setter inherited
icon
→ BitmapDescriptor
A description of the bitmap used to draw the marker icon.
final
infoWindow
→ InfoWindow
A Google Maps InfoWindow.
final
label
→ String
The text to be displayed on the marker
final
markerId
→ MarkerId
Uniquely identifies a Marker
.
final
onDrag
→ ValueChanged <LatLng > ?
Signature reporting the new LatLng
during the drag event.
final
onDragEnd
→ ValueChanged <LatLng > ?
Signature reporting the new LatLng
at the end of a drag event.
final
onDragStart
→ ValueChanged <LatLng > ?
Signature reporting the new LatLng
at the start of a drag event.
final
onTap
→ VoidCallback ?
Callbacks to receive tap events for markers placed on this map.
final
position
→ LatLng
Geographical location of the marker.
final
rotation
→ double
Rotation of the marker image in degrees clockwise from the anchor point.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
textStyle
→ TextStyle
TextStyle for the text to be displayed in the label marker.
final
visible
→ bool
True if the marker is visible.
final
zIndex
→ double
The z-index of the marker, used to determine relative drawing order of
map overlays.
final
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited