Marker class

A container for a child widget located at a geographic coordinate point

Some properties defaults will absorb the values from the parent MarkerLayer, if the reflected properties are defined there. alignment may be computed using computePixelAlignment.

Annotations

Constructors

Marker.new({Key? key, required LatLng point, required Widget child, double width = 30, double height = 30, Alignment? alignment, bool? rotate})
Creates a container for a child widget located at a geographic coordinate point
const

Properties

alignment Alignment?
Alignment of the marker relative to the normal center at point
final
child Widget
Widget tree of the marker, sized by width & height
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of child
final
key Key?
Provide an optional Key for the Marker. This key will get passed through to the created marker widget.
final
point → LatLng
Coordinates of the marker
final
rotate bool?
Whether to counter rotate this marker to the map's rotation, to keep a fixed orientation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Width of child
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

Operators

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

Static Methods

computePixelAlignment({required double width, required double height, required double left, required double top}) Alignment
Returns the alignment of a widthxheight rectangle by leftxtop pixels.