Skip to main content

SimpleAttribution

A simple attribution layer displayed on the Map.

Inherits: MapLayer

Properties

  • alignment - The alignment of this attribution on the map.
  • bgcolor - The color of the box containing the text.
  • text - The attribution message to be displayed.

Events

  • on_click - Fired when this attribution is clicked/pressed.

Properties

alignmentclass-attributeinstance-attribute

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

The alignment of this attribution on the map.

bgcolorclass-attributeinstance-attribute

bgcolor: ColorValue = Colors.SURFACE

The color of the box containing the text.

textinstance-attribute

text: Union[str, Text]

The attribution message to be displayed.

Events

on_clickclass-attributeinstance-attribute

on_click: Optional[ControlEventHandler[SimpleAttribution]] = None

Fired when this attribution is clicked/pressed.