MarkerInfoWindowComposable

fun MarkerInfoWindowComposable(vararg keys: Any, state: MarkerState = rememberMarkerState(), alpha: Float = 1.0f, anchor: Offset = Offset(0.5f, 1.0f), draggable: Boolean = false, flat: Boolean = false, infoWindowAnchor: Offset = Offset(0.5f, 0.0f), rotation: Float = 0.0f, snippet: String? = null, tag: Any? = null, title: String? = null, visible: Boolean = true, zIndex: Float = 0.0f, onClick: (Marker) -> Boolean = { false }, onInfoWindowClick: (Marker) -> Unit = {}, onInfoWindowClose: (Marker) -> Unit = {}, onInfoWindowLongClick: (Marker) -> Unit = {}, infoContent: @Composable (Marker) -> Unit? = null, content: @Composable () -> Unit)

A composable for a marker on the map wherein its entire info window and the marker itself can be customized. If this customization is not required, use com.google.maps.android.compose.Marker.

Parameters

keys

unique keys representing the state of this Marker. Any changes to one of the key will trigger a rendering of the content composable and thus the rendering of an updated marker.

state

the MarkerState to be used to control or observe the marker state such as its position and info window

alpha

the alpha (opacity) of the marker

anchor

the anchor for the marker image

draggable

sets the draggability for the marker

flat

sets if the marker should be flat against the map

infoWindowAnchor

the anchor point of the info window on the marker image

rotation

the rotation of the marker in degrees clockwise about the marker's anchor point

snippet

the snippet for the marker

tag

optional tag to associate with the marker

title

the title for the marker

visible

the visibility of the marker

zIndex

the z-index of the marker

onClick

a lambda invoked when the marker is clicked

onInfoWindowClick

a lambda invoked when the marker's info window is clicked

onInfoWindowClose

a lambda invoked when the marker's info window is closed

onInfoWindowLongClick

a lambda invoked when the marker's info window is long clicked

infoContent

optional composable lambda expression for customizing the info window's content

content

composable lambda expression used to customize the marker's content