screenToBaseSurface method

ArcGISPoint? screenToBaseSurface({
  1. required Offset screen,
})

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.

This method returns null if the provided screen coordinate is outside the bounds of the current screen or if its location does not intersect with the surface of the local scene.

To call this method, assign a local scene to the local scene view and ensure that it is loaded.

Parameters:

  • screen — The screen coordinate to convert to a location on the base surface. The coordinate of the top left corner of the screen is 0,0.

Return Value: A point on the base surface.