Consolidated Attribution
Add the experimental consolidated attribution ornament to the map.
A single pill with the Mapbox logo and the data attributions. It expands once on first launch, then collapses after a few seconds or on map interaction. It replaces the Attribution and Logo ornaments, so leave the logo slot empty:
MapboxMap(
attribution = { ConsolidatedAttribution() },
logo = {},
) { ... }By default the control is placed at the Alignment.BottomStart of the map with padding of 8dp.
Parameters
Modifier to be applied to the control.
The default padding applied to the control; paddings from modifier are applied on top of this default padding.
The alignment of the control within the Map.
How much of the control remains visible once it collapses.
The background material. Light and dark colors follow the night mode.
Shifts the background toward this color's hue. Color.Transparent applies no tint.
How often the intro expansion plays. Use ConsolidatedAttributionIntroExpansion.EVERY_LAUNCH on shared devices.
Custom AttributionDialogManager invoked when the control is tapped. Defaults to the SDK's attribution sheet.