Attribution

fun Attribution(modifier: Modifier = Modifier, alignment: Alignment = Alignment.BottomStart, iconColor: Color = Color(0xFF1E8CAB), attributionDialog: @Composable (attributions: List<Attribution>, onDismissRequest: () -> Unit, onAttributionClick: (Attribution) -> Unit) -> Unit = { attributions, onDismissRequest, onAttributionClick -> AttributionDialog( attributions = attributions, onDismissRequest = onDismissRequest, onAttributionClick = onAttributionClick ) }, telemetryDialog: @Composable (onDismissRequest: () -> Unit, onMoreInfo: () -> Unit, onDisagree: () -> Unit, onAgree: () -> Unit) -> Unit = { onDismissRequest, onMoreInfo, onDisagree, onAgree -> TelemetryDialog( onDismissRequest = onDismissRequest, onMoreInfo = onMoreInfo, onDisagree = onDisagree, onAgree = onAgree ) })

Add a Attribution ornament to the map.

Please note that it's required to show Mapbox Attribution button in your map. See Mapbox ToS

By default, the Attribution will be placed to the Alignment.BottomStart of the map with padding of 92dp, 4dp, 4dp, 4dp.

Parameters

modifier

Modifier to be applied to the Attribution.

alignment

The alignment of the Attribution within the Map.

attributionDialog

Defines AlertDialog when the attribution is clicked.