MyLocationComposable
fun MyLocationComposable(viewModel: MyLocationViewModel, colors: MyLocationComposableColors = MyLocationComposableDefaults.colors())
A composable to control follow mode.
This control displays a button that allows the user to:
Request location permission (when location quality is degraded)
Toggle camera follow mode (off → follow position → follow direction)
The UI and behavior are driven by the provided MyLocationViewModel, which can be customized or replaced by the user.
Parameters
viewModel
The view model that manages My Location state and user interactions.
colors
The colors to apply for the visual representation.