DisappearingScaleBar
fun DisappearingScaleBar(modifier: Modifier = Modifier, width: Dp = defaultWidth, height: Dp = defaultHeight, cameraPositionState: CameraPositionState, textColor: Color = DarkGray, lineColor: Color = DarkGray, shadowColor: Color = Color.White, visibilityDurationMillis: Int, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut())
An animated scale bar that appears when the zoom level of the map changes, and then disappears after visibilityDurationMillis. This composable wraps ScaleBar with visibility animations.
Implement your own observer on camera move events using CameraPositionState and pass it in as cameraPositionState.