MarkerOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

MarkerOptions({String? attribution, bool? interactive, Icon? icon, bool? keyboard, String? title, String? alt, double? zIndexOffset, double? opacity, bool? riseOnHover, double? riseOffset, String? pane, bool? bubblingMouseEvents, bool? draggable, bool? autoPan, Point? autoPanPadding, double? autoPanSpeed})
factory

Properties

alt String
Text for the alt attribute of the icon image (useful for accessibility).
getter/setter pair
attribution String
String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
getter/setter pairinherited
autoPan bool
Whether to pan the map when dragging this marker near its edge or not.
getter/setter pair
autoPanPadding Point
Distance (in pixels to the left/right and to the top/bottom) of the map edge to start panning the map.
getter/setter pair
autoPanSpeed double
Number of pixels the map should pan by
getter/setter pair
bubblingMouseEvents bool
When true, a mouse event on this marker will trigger the same event on the map (unless L.DomEvent.stopPropagation is used).
getter/setter pairoverride
draggable bool
Whether the marker is draggable with mouse/touch or not.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon Icon
Icon instance to use for rendering the marker. See Icon documentation for details on how to customize the marker icon. If not specified, a common instance of L.Icon.Default is used.
getter/setter pair
interactive bool
If false, the layer will not emit mouse events and will act as a part of the underlying map.
getter/setter pairinherited
keyboard bool
Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
getter/setter pair
opacity double
The opacity of the marker.
getter/setter pair
pane String
Map pane where the markers icon will be added. Map pane where the markers shadow will be added.
getter/setter pairoverride
riseOffset double
The z-index offset used for the riseOnHover feature
getter/setter pair
riseOnHover bool
If true, the marker will get on top of others when you hover the mouse over it.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Text for the browser tooltip that appear on marker hover (no tooltip by default).
no setter
zIndexOffset double
By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like 1000 (or high negative value, respectively).
getter/setter pair

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