Marker class

Marks a geographical location on the map.

A marker 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.

Constructors

Marker(GeoCoord position, {String label = '', String? icon, String? info, String? infoSnippet, ValueChanged<String>? onTap, VoidCallback? onInfoWindowTap})
Creates an instance of Marker.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon String?
If icon is set, must be a path to an image from project root as follows: assets/images/image.png. Or it must be an instance of ByteString.
final
info String?
If info is set and click event will be fired, will be shown popup with info within.
final
infoSnippet String?
infoSnippet sets snippet text for InfoWindow.
final
label String
label can be set only for web.
final
onInfoWindowTap VoidCallback?
if onInfoWindowTap is set, it will be called once InfoWindow will be tapped.
final
onTap ValueChanged<String>?
If onTap is not null, info popup will not be shown.
final
position GeoCoord
Geographical location on the map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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