PreviewMapView

fun PreviewMapView(modifier: Modifier = Modifier, route: Route, destinationImage: BitmapDrawable, routeColor: Int? = null, filePath: String, onTap: () -> Unit = {})

Composable function that creates a PreviewMapView and loads a map package from the provided file path.

Parameters

modifier

The modifier for styling or positioning the PreviewMapView. Default is Modifier.

route

The route to be displayed on the PreviewMapView.

destinationImage

The destination image to be displayed on the PreviewMapView.

routeColor

The color of the route to be displayed on the PreviewMapView. Default is null.

filePath

The file path of the map package to be loaded.

onTap

The callback function to be invoked when the PreviewMapView is tapped. Default is an empty lambda.