Map Scale Bar Scope
A MapScaleBarScope provides a scope for adding ScaleBar ornament.
Functions
Link copied to clipboard
fun ScaleBar(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(4.dp), alignment: Alignment = Alignment.TopStart, textColor: Color = Color.Black, primaryColor: Color = Color.Black, secondaryColor: Color = Color.White, borderWidth: Dp = 2.dp, height: Dp = 2.dp, textBarMargin: Dp = 8.dp, textBorderWidth: Dp = 2.dp, textSize: TextUnit = 8.sp, isMetricUnit: Boolean = true, refreshInterval: Duration = 15.milliseconds, showTextBorder: Boolean = true, ratio: Float = 0.5f, useContinuousRendering: Boolean = false)
Add a ScaleBar ornament to the map, the scale bar will update accordingly when the map's zoom level or latitude changes.