Skip to main content

TextSourceAttribution

A text source attribution displayed on the Map. For it to be displayed, it should be part of a flet_map.RichAttribution.attributions list.

Inherits: SourceAttribution

Properties

Events

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

Properties

prepend_copyright: bool = True

Whether to add the '©' character to the start of text automatically.

textinstance-attribute

text: str

The text to display as attribution, styled with text_style.

text_styleclass-attributeinstance-attribute

text_style: Optional[TextStyle] = None

Style used to display the text.

Events

on_clickclass-attributeinstance-attribute

on_click: Optional[ControlEventHandler[TextSourceAttribution]] = None

Fired when this attribution is clicked/pressed.