MapComposable
fun MapComposable(modifier: Modifier = Modifier, viewModel: MapControllerViewModel, renderOptions: MapRenderOptions, copyrightOptions: MapCopyrightOptions)
Renders the map of a MapControllerViewModel.
The composable follows MapControllerViewModel.state: while the map is not created it shows the loading background, then renders the map. It does not own the view model and never closes it; keep the view model in a state holder that survives configuration changes and close it when the map is no longer needed.
Everything beyond rendering — theme, FPS limits, touch and object-tap events, snapshots — is available on the created ru.dgis.sdk.map.MapController and its map, renderer and gestureRecognizer.
Parameters
modifier
The modifier to be applied to the map.
viewModel
Owner of the map controller to render.
renderOptions
Options for configuring the map view rendering.
copyrightOptions
Options for configuring the copyright view.