Map Compass Scope
class MapCompassScope
A MapCompassScope provides a scope for adding Compass ornament.
Functions
Link copied to clipboard
fun Compass(modifier: <Error class: unknown class> = Modifier, contentPadding: <Error class: unknown class> = PaddingValues(4.dp), alignment: <Error class: unknown class> = Alignment.TopEnd, fadeWhenFacingNorth: Boolean = true, resetToNorthUponClick: Boolean = true, content: () -> Unit = {
Image(
painter = painterResource(id = R.drawable.mapbox_compass_icon),
contentDescription = "Mapbox Compass"
)
})
Add a Compass ornament to the map, the direction of the compass will follow the map camera's bearing, when the compass is clicked, the map camera's bearing will be reset to face north.