GoogleMap

fun GoogleMap(modifier: Modifier = Modifier, mergeDescendants: Boolean = false, cameraPositionState: CameraPositionState = rememberCameraPositionState(), contentDescription: String? = null, googleMapOptionsFactory: () -> GoogleMapOptions = { GoogleMapOptions() }, properties: MapProperties = DefaultMapProperties, locationSource: LocationSource? = null, uiSettings: MapUiSettings = DefaultMapUiSettings, indoorStateChangeListener: IndoorStateChangeListener = DefaultIndoorStateChangeListener, onMapClick: (LatLng) -> Unit? = null, onMapLongClick: (LatLng) -> Unit? = null, onMapLoaded: () -> Unit? = null, onMyLocationButtonClick: () -> Boolean? = null, onMyLocationClick: (Location) -> Unit? = null, onPOIClick: (PointOfInterest) -> Unit? = null, contentPadding: PaddingValues = DefaultMapContentPadding, mapColorScheme: ComposeMapColorScheme? = null, content: @Composable () -> Unit = {})

A compose container for a MapView.

Parameters

modifier

Modifier to be applied to the GoogleMap

mergeDescendants

deactivates the map for accessibility purposes

cameraPositionState

the CameraPositionState to be used to control or observe the map's camera state

contentDescription

the content description for the map used by accessibility services to describe the map. If none is specified, the default is "Google Map".

googleMapOptionsFactory

the block for creating the GoogleMapOptions provided when the map is created

properties

the properties for the map

locationSource

the LocationSource to be used to provide location data

uiSettings

the MapUiSettings to be used for UI-specific settings on the map

indoorStateChangeListener

listener for indoor building state changes

onMapClick

lambda invoked when the map is clicked

onMapLoaded

lambda invoked when the map is finished loading

onMyLocationButtonClick

lambda invoked when the my location button is clicked

onMyLocationClick

lambda invoked when the my location dot is clicked

onPOIClick

lambda invoked when a POI is clicked

contentPadding

the padding values used to signal that portions of the map around the edges may be obscured. The map will move the Google logo, etc. to avoid overlapping the padding.

mapColorScheme

Defines the color scheme for the Map.

content

the content of the map