Skip to content

SimpleAttribution

Inherits: MapLayer

A simple attribution layer displayed on the Map.

Properties

Events

Properties#

alignment class-attribute instance-attribute #

alignment: Alignment = field(
    default_factory=lambda: BOTTOM_RIGHT
)

The alignment of this attribution on the map.

bgcolor class-attribute instance-attribute #

bgcolor: ColorValue = SURFACE

The color of the box containing the text.

text instance-attribute #

text: str | Text

The attribution message to be displayed.

Events#

on_click class-attribute instance-attribute #

on_click: ControlEventHandler[SimpleAttribution] | None = (
    None
)

Fired when this attribution is clicked/pressed.