fun MapboxMap(modifier: Modifier = Modifier, mapEvents: MapEvents? = null, mapInitOptionsFactory: (Context) -> MapInitOptions = { context -> MapInitOptions(context) }, attributionSettings: AttributionSettings = DefaultSettingsProvider.defaultAttributionSettings(
LocalContext.current
), compassSettings: CompassSettings = DefaultSettingsProvider.defaultCompassSettings(
LocalContext.current
), gesturesSettings: GesturesSettings = DefaultSettingsProvider.defaultGesturesSettings, locationComponentSettings: LocationComponentSettings = DefaultSettingsProvider.defaultLocationComponentSettings(
LocalContext.current
), logoSettings: LogoSettings = DefaultSettingsProvider.defaultLogoSettings(
LocalContext.current
), scaleBarSettings: ScaleBarSettings = DefaultSettingsProvider.defaultScaleBarSettings(
LocalContext.current
), mapViewportState: MapViewportState = rememberMapViewportState(), onMapClickListener: OnMapClickListener = DefaultSettingsProvider.defaultOnClickListener, onMapLongClickListener: OnMapLongClickListener = DefaultSettingsProvider.defaultOnLongClickListener, content: @Composable MapboxMapScope.() -> Unit? = null) Entry point for adding a Mapbox Map instance to the Jetpack Compose UI.
Parameters
Modifier to be applied to the Mapbox map.
Defines the initialisation configurations factory for a MapboxMap. It can only be set once and not mutable after the initialisation. Mutating the MapInitOptions during recomposition will result in a IllegalStateException.
Settings for showing the attribution icon on the map.
Settings for showing the compass icon on the map.
Gesture configuration allows to control the user touch interaction.
locationComponentSettings
Settings for showing a location puck on the map.
Settings for showing the Mapbox logo on the map.
Settings for showing the scale bar on the map.
A state object that can be hoisted to control and observe the map's camera state. A MapViewportState may only be used by a single MapboxMap composable at a time as it reflects instance state for a single view of a map.
Callback to be invoked when the user clicks on the map view.
Callback to be invoked when the user long clicks on the map view.