MarkerOptions class Navigation View Map View

Defines MarkerOptions for a marker.

Annotations

Constructors

MarkerOptions({double alpha = 1.0, MarkerAnchor anchor = const MarkerAnchor(u: 0.5, v: 1.0), bool draggable = false, bool flat = false, ImageDescriptor icon = ImageDescriptor.defaultImage, bool consumeTapEvents = false, LatLng position = const LatLng(latitude: 0.0, longitude: 0.0), double rotation = 0.0, InfoWindow infoWindow = InfoWindow.noInfo, bool visible = true, double zIndex = 0.0})
Initialize MarkerOptions object.
const

Properties

alpha double
Sets the alpha (opacity) of the marker.
final
anchor MarkerAnchor
Specifies the anchor to be at a particular point in the marker image.
final
consumeTapEvents bool
Sets whether map view does the default behavior when clicking marker. If set to true default behaviour does not occur. If set to false the camera moves to marker and info window appears.
final
draggable bool
Allow dragging the marker.
final
flat bool
Sets whether this marker should be flat against the map or a billboard facing the camera.
final
hashCode int
The hash code for this object.
no setteroverride
icon ImageDescriptor
Specifies the image ID of the bitmap drawn as the marker on the map. The bitmap must be registered with registerBitmapImage before creating marker.
final
infoWindow InfoWindow
Sets InfoWindow. The window is displayed when the marker is tapped.
final
position LatLng
Sets the location for the marker.
final
rotation double
Sets the rotation of the marker in degrees clockwise about the marker's anchor point.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
Sets the visibility for the marker.
final
zIndex double
Sets the zIndex for the marker.
final

Methods

copyWith({double? alpha, MarkerAnchor? anchor, bool? draggable, bool? flat, ImageDescriptor? icon, bool? consumeTapEvents, MarkerAnchor? infoWindowAnchor, LatLng? position, double? rotation, String? snippet, String? title, InfoWindow? infoWindow, bool? visible, double? zIndex}) MarkerOptions
Create copy of MarkerOptions with 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