screenToLocation method

Future<ArcGISPoint> screenToLocation({
  1. required Offset screen,
})

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

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.

Parameters:

  • screen — The screen coordinate, in pixels. The coordinate of the top left corner of the screen is 0,0.

Return Value: A point on the scene.