TextSourceAttribution
Inherits: SourceAttribution
A text source attribution displayed on the Map.
For it to be displayed, it should be part of a
RichAttribution.attributions list.
Properties
-
prepend_copyright(bool) –Whether to add the '©' character to the start of
textautomatically. -
text(str) –The text to display as attribution, styled with
text_style. -
text_style(TextStyle | None) –Style used to display the
text.
Events
-
on_click(ControlEventHandler[TextSourceAttribution] | None) –Fired when this attribution is clicked/pressed.
Properties#
prepend_copyright
class-attribute
instance-attribute
#
prepend_copyright: bool = True
Whether to add the '©' character to the start of text automatically.
text_style
class-attribute
instance-attribute
#
text_style: TextStyle | None = None
Style used to display the text.
Events#
on_click
class-attribute
instance-attribute
#
on_click: (
ControlEventHandler[TextSourceAttribution] | None
) = None
Fired when this attribution is clicked/pressed.