fun Attribution(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(92.dp, 4.dp, 4.dp, 4.dp), 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
The default padding applied to the Attribution, paddings from modifier will be applied on top of this default padding.
Defines AlertDialog when the attribution is clicked.
Defines TelemetryDialog when the Mapbox telemetry is clicked.
fun Attribution(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(92.dp, 4.dp, 4.dp, 4.dp), 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
)
}, geofencingConsentDialog: @Composable (onDismissRequest: () -> Unit, onDisagree: () -> Unit, onAgree: () -> Unit, currentUserConsent: Boolean) -> Unit = { onDismissRequest, onDisagree, onAgree, currentUserConsent ->
GeofencingConsentDialog(
onDismissRequest = onDismissRequest,
onDisagree = onDisagree,
onAgree = onAgree,
currentUserConsent = currentUserConsent,
)
}) 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
The default padding applied to the Attribution, paddings from modifier will be applied on top of this default padding.
Defines AlertDialog when the attribution is clicked.
Defines TelemetryDialog when the Mapbox telemetry is clicked.
Defines GeofencingConsentDialog when the Mapbox Geofencing is clicked.