FlyoverSceneViewProxy

Used to perform operations on a FlyoverSceneView.

There should be a one-to-one relationship between a FlyoverSceneViewProxy and a FlyoverSceneView. This relationship is established by passing an instance of FlyoverSceneViewProxy to the FlyoverSceneView function. Operations can only be performed once the associated composable FlyoverSceneView has entered the composition. Operations performed when the associated composable FlyoverSceneView is not in the composition will fail gracefully, i.e. won't throw exceptions but won't return a successful result.

Since

200.8.0

Constructors

Link copied to clipboard
constructor(location: Point, heading: Double)

When instantiating this class from a composable, use rememberFlyoverSceneViewProxy to automatically remember the proxy.

Properties

Link copied to clipboard

The horizontal field of view of the FlyoverSceneView in degrees.

Link copied to clipboard

The ratio indicates how much the vertical field of view is distorted.

Link copied to clipboard

True if continuous panning across the international date line is enabled in the FlyoverSceneView false otherwise. A null value represents that it is currently undetermined.

Functions

Link copied to clipboard

Exports an image snapshot of the current FlyoverSceneView.

Link copied to clipboard
fun getLayerViewState(layer: Layer): LayerViewState?

Retrieve the layer's LayerViewState.

Link copied to clipboard
suspend fun identify(layer: Layer, screenCoordinate: ScreenCoordinate, tolerance: Dp, returnPopupsOnly: Boolean = false, maximumResults: Int? = 1): Result<IdentifyLayerResult>

Initiate an Identify operation on the specified layer.

suspend fun identify(graphicsOverlay: GraphicsOverlay, screenCoordinate: ScreenCoordinate, tolerance: Dp, returnPopupsOnly: Boolean = false, maximumResults: Int? = 1): Result<IdentifyGraphicsOverlayResult>

Initiate an Identify operation on the specified graphicsOverlay.

Link copied to clipboard
suspend fun identifyGraphicsOverlays(screenCoordinate: ScreenCoordinate, tolerance: Dp, returnPopupsOnly: Boolean = false, maximumResults: Int? = 1): Result<List<IdentifyGraphicsOverlayResult>>

Initiate an Identify operation on all graphics overlays.

Link copied to clipboard
suspend fun identifyLayers(screenCoordinate: ScreenCoordinate, tolerance: Dp, returnPopupsOnly: Boolean = false, maximumResults: Int? = 1): Result<List<IdentifyLayerResult>>

Initiate an Identify operation on all layers in the view.

Link copied to clipboard
fun locationToScreen(point: Point): LocationToScreenResult?

Converts a location in map coordinates to a point in screen coordinates relative to the upper-left corner of the FlyoverSceneView.

Link copied to clipboard
fun screenToBaseSurface(screenCoordinate: ScreenCoordinate): Point?

Converts a screen coordinate (in pixels) to a point on the base surface of the scene within the FlyoverSceneView's spatial reference.

Link copied to clipboard
suspend fun screenToLocation(screenCoordinate: ScreenCoordinate): Result<Point>

Asynchronously converts a screen coordinate relative to the upper-left corner of the scene view to a location in map coordinates.

Link copied to clipboard
fun setLocationAndHeading(location: Point, heading: Double)

Sets the camera location and heading and resets the AR session to use those values as the camera origin.