screenToLocation

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.

This is a high performance calculation executed on the GPU using a triangular mesh. Note that elevation values are approximated, and as the distance between the camera and the surface increases, the precision of the elevation value decreases.

To call this method, assign a scene to the scene view, ensure that it is loaded and the draw status is DrawStatus.Completed.

Return

A Result containing a Point or an exception.

Since

200.1.0

Parameters

screenCoordinate

a pixel coordinate relative to the upper-left corner of the screen.