-
public final class ScaleBarKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Color
DarkGray
-
Method Summary
Modifier and Type Method Description final Color
getDarkGray()
final static Unit
ScaleBar(Modifier modifier, Dp width, Dp height, CameraPositionState cameraPositionState, Color textColor, Color lineColor, Color shadowColor)
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. final static Unit
DisappearingScaleBar(Modifier modifier, Dp width, Dp height, CameraPositionState cameraPositionState, Color textColor, Color lineColor, Color shadowColor, Integer visibilityDurationMillis, EnterTransition enterTransition, ExitTransition exitTransition)
An animated scale bar that appears when the zoom level of the map changes, and then disappears after visibilityDurationMillis. -
-
Method Detail
-
getDarkGray
final Color getDarkGray()
-
ScaleBar
@Composable() final static Unit ScaleBar(Modifier modifier, Dp width, Dp height, CameraPositionState cameraPositionState, Color textColor, Color lineColor, Color shadowColor)
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.
-
DisappearingScaleBar
@Composable() final static Unit DisappearingScaleBar(Modifier modifier, Dp width, Dp height, CameraPositionState cameraPositionState, Color textColor, Color lineColor, Color shadowColor, Integer visibilityDurationMillis, EnterTransition enterTransition, ExitTransition exitTransition)
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.
-
-
-
-