Package-level declarations
Contains Material 3 based controls for the map, as an alternative to the default map ornaments.
Types
Functions
Link copied to clipboard
fun AttributionButton(styleState: StyleState, modifier: Modifier = Modifier, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), contentDescription: String = "Attribution")
Link copied to clipboard
fun CompassButton(cameraState: CameraState, modifier: Modifier = Modifier, onClick: () -> Unit = {}, colors: ButtonColors = ButtonDefaults.elevatedButtonColors(), contentDescription: String = "Compass")
Link copied to clipboard
fun DisappearingCompassButton(cameraState: CameraState, modifier: Modifier = Modifier, onClick: () -> Unit = {}, colors: ButtonColors = ButtonDefaults.elevatedButtonColors(), contentDescription: String = "Compass", visibilityDuration: Duration = 1.seconds, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut())
Link copied to clipboard
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())
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.
Link copied to clipboard
fun ScaleBar(cameraState: CameraState, modifier: Modifier = Modifier, width: Dp = ScaleBarDefaults.width, height: Dp = ScaleBarDefaults.height, colors: ScaleBarColors = ScaleBarDefaults.colors())
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.