Skip to content

SimpleAttribution

Inherits: MapLayer

A simple attribution layer displayed on the Map.

Properties

Events

Properties#

alignment #

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

The alignment of this attribution on the map.

bgcolor #

bgcolor: ColorValue = SURFACE

The color of the box containing the text.

text #

text: str | Text

The attribution message to be displayed.

Events#

on_click #

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

Fired when this attribution is clicked/pressed.