LocalSceneViewProxy

Used to perform operations on a composable LocalSceneView.

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

Since

300.0.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

True if continuous panning across the international date line is enabled, false otherwise. By default, a GeoView attempts to wrap the ArcGISMap or ArcGISScene across the international date line for a continuous panning user experience. The eastern and western hemispheres wrap to form a continuous map, giving the impression that the map is endless.

Functions

Link copied to clipboard

Exports an image snapshot of the current composable MapView or SceneView.

Link copied to clipboard
fun getAnalysisViewStatus(analysis: Analysis): AnalysisViewStatus?

Retrieves the analysis' status in the view.

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

Retrieve the layer's LayerViewState.

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

Initiate an Identify operation on the specified layer.

suspend fun identify(graphicsOverlay: GraphicsOverlay, screenCoordinate: <Error class: unknown class>, 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: <Error class: unknown class>, 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: <Error class: unknown class>, 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 local scene view.

Link copied to clipboard
fun screenToBaseSurface(screenCoordinate: <Error class: unknown class>): Point?

Converts a screen coordinate to a location on the base surface in scene coordinates, considering only the scene's base surface and ignoring other scene content. Note that the elevation value for the converted location is approximated, as the precision of the elevation value decreases with increasing distance between the camera and the surface.

Link copied to clipboard
suspend fun screenToLocation(screenCoordinate: <Error class: unknown class>): Result<Point>

Converts a screen coordinate to a location in scene coordinates, considering both the scene's base surface and other scene content.

Link copied to clipboard
suspend fun setBookmark(bookmark: Bookmark): Result<Boolean>

Animate the geo view's viewpoint to the viewpoint of the bookmark.

Link copied to clipboard
fun setViewpoint(viewpoint: Viewpoint)

Change the geo view to the new viewpoint. The viewpoint is updated instantaneously.

Link copied to clipboard
suspend fun setViewpointAnimated(viewpoint: Viewpoint, duration: Duration = 0.25.seconds): Result<Boolean>

Animate the geo view to the new viewpoint, taking the given duration to complete the navigation.

suspend fun setViewpointAnimated(viewpoint: Viewpoint, animationCurve: AnimationCurve, duration: Duration = 3.seconds): Result<Boolean>

Pans or zooms the local scene view using animation to the specified viewpoint location. The animation takes place over the specified duration. The animation curve defines the animation easing function.

Link copied to clipboard
fun setViewpointCamera(camera: Camera)

Changes the display to the viewpoint specified by the given camera.

Link copied to clipboard
suspend fun setViewpointCameraAnimated(camera: Camera, duration: Duration = 3.seconds): Result<Boolean>

Pans or zooms the local scene view using animation to the specified camera location asynchronously. Animation takes place over the specified duration.