MeshMap

fun MeshMap(mapState: MapState, modifier: Modifier = Modifier, basemap: Basemap = Basemaps.default, onMapLongClick: (Position) -> Unit = {}, onMapClick: (Position) -> Unit = {})(source)

The mesh map, rendered by MapLibre.

Presents mapState and nothing else; what gets drawn is declared by rememberMeshMapState.

basemap must be the same one that state was built with: it supplies the zoom range the camera is held to, and a different value here would clamp the camera to a range the loaded style cannot serve.