GroundOverlay class
Defines an image on the map.
- Annotations
Constructors
- GroundOverlay({required GroundOverlayId groundOverlayId, required double width, required double height, required BitmapDescriptor imageDescriptor, LatLng? position, double bearing = 0.0, bool clickable = false, LatLngBounds? bounds, Offset anchor = const Offset(0.5, 1.0), double transparency = 0.0, bool visible = true, double zIndex = 0.0, VoidCallback? onClick})
-
Creates a GroundOverlay object.
const
Properties
- anchor → Offset
-
Anchor of a ground overlay.
final
- bearing → double
-
Bearing of a ground overlay, in degrees clockwise from north.
final
- bounds → LatLngBounds?
-
Bounds of a ground overlay.
final
- clickable → bool
-
Indicates whether a ground overlay is tappable.
final
- groundOverlayId → GroundOverlayId
-
Unique Ground Overlay ID.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
Height of a ground overlay, in meters.
final
- imageDescriptor → BitmapDescriptor
-
Image of a ground overlay.
final
- onClick → VoidCallback?
-
Function to be executed when a ground overlay is tapped.
final
- position → LatLng?
-
Position of a ground overlay.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transparency → double
-
Transparency of a ground overlay.
final
- visible → bool
-
Indicates whether a ground overlay is visible.
final
- width → double
-
Width of a ground overlay, in meters.
final
- zIndex → double
-
Z-index of a ground overlay.
final
Methods
-
clone(
) → GroundOverlay - Clones a GroundOverlay object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCopy(
{double? bearing, bool? clickable, double? width, double? height, BitmapDescriptor? imageDescriptor, LatLng? position, LatLngBounds? bounds, Offset? anchor, double? transparency, bool? visible, double? zIndex, VoidCallback? onClick}) → GroundOverlay - Copies a GroundOverlay object and updates the specified attributes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override