TooltipOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

TooltipOptions({String? attribution, String? className, String? pane, Point? offset, String? direction, bool? permanent, bool? sticky, bool? interactive, double? opacity})
factory

Properties

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
className String
A custom CSS class name to assign to the popup.
getter/setter pairinherited
direction String
Direction where to open the tooltip. Possible values are: right, left, top, bottom, center, auto. auto will dynamically switch between right and left according to the tooltip position on the map.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interactive bool
If true, the tooltip will listen to the feature events.
getter/setter pair
offset Point
The offset of the popup position. Useful to control the anchor of the popup when opening it on some overlays.
getter/setter pairinherited
opacity double
Tooltip container opacity.
getter/setter pair
pane String
Map pane where the tooltip will be added.
getter/setter pairoverride
permanent bool
Whether to open the tooltip permanently or only on mouseover.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sticky bool
If true, the tooltip will follow the mouse instead of being fixed at the feature center.
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