RichAttribution
An animated and interactive attribution layer that supports both images and text (displayed in a popup controlled by an icon button adjacent to the images).
Inherits: MapLayer
Properties
alignment- The position in which to anchor this attribution control.attributions- List of attributions to display.permanent_height- The height of the permanent row in which is found the popup menu toggle button.popup_bgcolor- The color to use as the popup box's background color.popup_border_radius- The radius of the edges of the popup box.popup_initial_display_duration- The popup box will be open by default and be hidden this long after the map is initialised.show_flutter_map_attribution- Whether to add an additional attribution logo and text forflutter-map, on which 'flet-map' package is based for map-renderings.
Properties
alignmentclass-attributeinstance-attribute
alignment: Optional[AttributionAlignment] = NoneThe position in which to anchor this attribution control.
attributionsinstance-attribute
attributions: list[SourceAttribution]List of attributions to display.
TextSourceAttributions are shown in a popup box, unlike ImageSourceAttribution, which are visible permanently.
permanent_heightclass-attributeinstance-attribute
permanent_height: Number = 24.0The height of the permanent row in which is found the popup menu toggle button. Also determines spacing between the items within the row.
popup_bgcolorclass-attributeinstance-attribute
popup_bgcolor: Optional[ColorValue] = Colors.SURFACEThe color to use as the popup box's background color.
popup_border_radiusclass-attributeinstance-attribute
popup_border_radius: Optional[BorderRadiusValue] = NoneThe radius of the edges of the popup box.
popup_initial_display_durationclass-attributeinstance-attribute
popup_initial_display_duration: DurationValue = field(default_factory=(lambda: Duration()))The popup box will be open by default and be hidden this long after the map is initialised.
This is useful with certain sources/tile servers that make immediate attribution mandatory and are not attributed with a permanently visible ImageSourceAttribution.
show_flutter_map_attributionclass-attributeinstance-attribute
show_flutter_map_attribution: bool = TrueWhether to add an additional attribution logo and text
for flutter-map,
on which 'flet-map' package is based for map-renderings.