DisappearingScaleBar
fun DisappearingScaleBar(cameraState: CameraState, modifier: Modifier = Modifier, width: Dp = ScaleBarDefaults.width, height: Dp = ScaleBarDefaults.height, colors: ScaleBarColors = ScaleBarDefaults.colors(), visibilityDuration: Duration = 3.seconds, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut())(source)
An animated scale bar that appears when the zoom level of the map changes, and then disappears after visibilityDuration. This composable wraps ScaleBar with visibility animations.