MapRuntime

interface MapRuntime(source)

Creates logical maps that share one application-level configuration.

Properties

Link copied to clipboard
abstract val isClosed: Boolean

Returns true after close marks this runtime as closed.

Link copied to clipboard

The offline packs and ambient cache managed by this runtime.

Functions

Link copied to clipboard
abstract suspend fun awaitClosed()

Waits until every child and shared resource has finished cleanup.

Link copied to clipboard
abstract fun close()

Marks this runtime as closed and starts child and shared-resource cleanup.

Link copied to clipboard
abstract fun createMapState(baseStyle: BaseStyle, cameraPosition: CameraPosition = CameraPosition(), content: @Composable () -> Unit = {}): MapState

Creates a logical map with baseStyle and the sources, layers, and images that content declares. The caller must close the result.

Link copied to clipboard
abstract fun createSnapshotter(baseStyle: BaseStyle, content: @Composable () -> Unit = {}): MapSnapshotter

Creates an independent non-UI map with baseStyle and the sources, layers, and images that content declares, for image capture. The caller must close the result.