PlaceMarkerState

@Stable
interface PlaceMarkerState


A lightweight state holder that captures location coordinates and loaded place metadata for a PlaceMarker, enabling seamless integration with Compose map SDKs and custom UI layouts.

Summary

Public properties

String

The accessibility content description for the marker, or empty string if loading or not available.

Exception?

Error encountered during place marker loading, if any.

MarkerIcon

The icon variant displayed by the marker.

Boolean

Whether the place marker UI and data are loaded and ready.

LatLng?

The geographic coordinates of the place, or null if loading or not available.

Place?

The loaded Place object (minimal place containing id, location, and viewport).

PlaceReference

The PlaceReference specifying the place targeted by this marker.

MarkerText?

The text variant displayed by the marker, or null if no text is displayed.

Public properties

contentDescription

val contentDescription: String

The accessibility content description for the marker, or empty string if loading or not available.

error

val error: Exception?

Error encountered during place marker loading, if any.

icon

val icon: MarkerIcon

The icon variant displayed by the marker.

isLoaded

val isLoaded: Boolean

Whether the place marker UI and data are loaded and ready.

location

val location: LatLng?

The geographic coordinates of the place, or null if loading or not available.

place

val place: Place?

The loaded Place object (minimal place containing id, location, and viewport).

reference

val reference: PlaceReference

The PlaceReference specifying the place targeted by this marker.

text

val text: MarkerText?

The text variant displayed by the marker, or null if no text is displayed.