TooltipOptions

Properties

Link copied to clipboard
abstract var 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.

Link copied to clipboard
Link copied to clipboard
abstract var className: String?

A custom CSS class name to assign to the overlay.

Link copied to clipboard
abstract var direction: DirectionsUnion?

Direction where to open the tooltip. Possible values are: right, left, top, bottom, center, auto.

Link copied to clipboard
abstract var interactive: Boolean?

If true, the popup/tooltip will listen to the mouse events.

Link copied to clipboard
abstract var offset: Point

The offset of the overlay position.

Link copied to clipboard
abstract var opacity: Number?

Tooltip container opacity.

Link copied to clipboard
abstract var pane: String?

By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.

Link copied to clipboard
abstract var permanent: Boolean?

Whether to open the tooltip permanently or only on mouseover.

Link copied to clipboard
abstract var sticky: Boolean?

If true, the tooltip will follow the mouse instead of being fixed at the feature center.