Annotation class
Marks a geographical location on the map.
A annotation icon is drawn oriented against the device's screen rather than the map's surface; that is, it will not necessarily change orientation due to map rotations, tilting, or zooming.
- Annotations
Constructors
-
Annotation({required AnnotationId annotationId, double alpha = 1.0, Offset anchor = const Offset(0.5, 1.0), bool draggable = false, BitmapDescriptor icon = BitmapDescriptor.defaultAnnotation, InfoWindow infoWindow = InfoWindow.noText, LatLng position = const LatLng(0.0, 0.0), VoidCallback? onTap, bool visible = true, double zIndex = -1, ValueChanged<
LatLng> ? onDragEnd}) - Creates a set of annotation configuration options.
Properties
- alpha → double
-
The opacity of the annotation, 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
- annotationId → AnnotationId
-
Uniquely identifies a Annotation.
final
- draggable → bool
-
True if the annotation is draggable by user touch events.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- icon → BitmapDescriptor
-
A description of the bitmap used to draw the annotation icon.
final
- infoWindow → InfoWindow
-
An Apple Maps InfoWindow.
final
-
onDragEnd
→ ValueChanged<
LatLng> ? -
final
- onTap → VoidCallback?
-
Callbacks to receive tap events for annotations placed on this map.
final
- position → LatLng
-
Geographical location of the annotation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible → bool
-
True if the annotation is visible.
final
- zIndex ↔ double
-
The z-index of the annotation, used to determine relative drawing order of
map overlays.
getter/setter pair
Methods
-
copyWith(
{double? alphaParam, Offset? anchorParam, bool? consumeTapEventsParam, bool? draggableParam, BitmapDescriptor? iconParam, InfoWindow? infoWindowParam, LatLng? positionParam, bool? visibleParam, double? zIndexParam, VoidCallback? onTapParam, ValueChanged< LatLng> ? onDragEndParam}) → Annotation - Creates a new Annotation object whose values are the same as this instance, unless overwritten by the specified parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override