Package 

Class MarkerKt

    • Method Summary

      Modifier and Type Method Description
      final static MarkerState rememberMarkerState(String key, LatLng position)
      final static Unit Marker(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick) A composable for a marker on the map.
      final static Unit MarkerInfoWindow(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick, Function1<Marker, Unit> content) A composable for a marker on the map wherein its entire info window can be customized.
      final static Unit MarkerInfoWindowContent(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick, Function1<Marker, Unit> content) A composable for a marker on the map wherein its info window contents can be customized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • Marker

        @Composable() final static Unit Marker(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick)

        A composable for a marker on the map.

        Parameters:
        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
        icon - sets the icon for the marker
        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
      • MarkerInfoWindow

        @Composable() final static Unit MarkerInfoWindow(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick, Function1<Marker, Unit> content)

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

        Parameters:
        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
        icon - sets the icon for the marker
        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
        content - optional composable lambda expression for customizing the info window's content
      • MarkerInfoWindowContent

        @Composable() final static Unit MarkerInfoWindowContent(MarkerState state, Float alpha, Offset anchor, Boolean draggable, Boolean flat, BitmapDescriptor icon, Offset infoWindowAnchor, Float rotation, String snippet, Object tag, String title, Boolean visible, Float zIndex, Function1<Marker, Boolean> onClick, Function1<Marker, Unit> onInfoWindowClick, Function1<Marker, Unit> onInfoWindowClose, Function1<Marker, Unit> onInfoWindowLongClick, Function1<Marker, Unit> content)

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

        Parameters:
        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
        icon - sets the icon for the marker
        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
        content - optional composable lambda expression for customizing the info window's content