MapSurface

fun MapSurface(context: Context, surface: Surface, mapInitOptions: MapInitOptions = MapInitOptions(context))

Parameters

context

a visual context (Activity, WindowContext, or DisplayContext) used to initialise the default MapInitOptions. On API 30+, a non-visual context (e.g. applicationContext) disables VRR/refresh-rate monitoring and locks the map to 60 fps on high-refresh-rate displays.

surface

the surface that will display map

mapInitOptions

the init options for map