ScaleBar

fun ScaleBar(modifier: Modifier = Modifier, width: Dp = defaultWidth, height: Dp = defaultHeight, cameraPositionState: CameraPositionState, textColor: Color = DarkGray, lineColor: Color = DarkGray, shadowColor: Color = Color.White)

A scale bar composable that shows the current scale of the map in feet and meters when zoomed in to the map, changing to miles and kilometers, respectively, when zooming out.

Implement your own observer on camera move events using CameraPositionState and pass it in as cameraPositionState.