locationToScreen

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 TableTopSceneView.

The screen coordinates are in device-independent pixels (DIP) relative to the upper-left corner of the scene view at position 0,0. The LocationToScreenResult indicates whether the screen coordinates are visible in the scene view. They can be invisible if they are on the other side of the globe, not in the com.arcgismaps.mapping.Viewpoint, or are blocked by the base surface or elevation layer.

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

Return

A location to screen result object. If an error occurs, null is returned.

Since

200.6.0

Parameters

point

a location defined within the spatial reference of the scene view