Callout

fun Callout(location: Point, modifier: Modifier = Modifier, offset: Offset = Offset.Zero, rotateOffsetWithGeoView: Boolean = false, colorScheme: CalloutColors = CalloutDefaults.colors(), shapes: CalloutShapes = CalloutDefaults.shapes(), content: @Composable BoxScope.() -> Unit)

Displays a Callout at the specified geographical location on the TableTopSceneView. The Callout is a composable that can be used to display additional information about a location on the scene. The additional information is passed as a content composable that contains text and/or other content. It has a leader that points to the location that Callout refers to. The body of the Callout is a rectangular area with curved corners that contains the content lambda provided by the application. A thin border line is drawn around the entire Callout.

Note: Only one Callout can be displayed at a time on the TableTopSceneView.

Since

200.6.0

Parameters

location

the geographical location at which to display the Callout

modifier

Modifier to be applied to the composable Callout

content

the content of the Callout

offset

the offset in screen coordinates from the geographical location at which to place the callout

rotateOffsetWithGeoView

specifies whether the screen offset is rotated with the TableTopSceneView. The Screen offset will be rotated with the TableTopSceneView when true, false otherwise. This is useful if you are showing the callout for elements with symbology that does rotate with the TableTopSceneView

colorScheme

the styling options for the Callout's color properties

shapes

the styling options for the Callout's container shape


fun Callout(geoElement: GeoElement, modifier: Modifier = Modifier, tapLocation: Point? = null, colorScheme: CalloutColors = CalloutDefaults.colors(), shapes: CalloutShapes = CalloutDefaults.shapes(), content: @Composable BoxScope.() -> Unit)

Creates a Callout at the specified geoElement or the tapLocation location on the TableTopSceneView. The Callout is a composable that can be used to display additional information about a location on the scene. The additional information is passed as a content composable that contains text and/or other content. It has a leader that points to the location that Callout refers to. The body of the Callout is a rectangular area with curved corners that contains the content lambda provided by the application. A thin border line is drawn around the entire Callout.

If the given geoelement is a DynamicEntity then the Callout automatically updates its location everytime the DynamicEntity changes. The content of the Callout however will not be automatically updated.

Note: Only one Callout can be displayed at a time on the TableTopSceneView.

Since

200.6.0

Parameters

geoElement

the GeoElement for which to display the Callout

modifier

Modifier to be applied to the composable Callout

tapLocation

a Point the user has tapped, or null if the Callout is not associated with a tap

colorScheme

the styling options for the Callout's shape and color properties

shapes

the styling options for the Callout's container shape

content

the content of the Callout