locationToScreen

Converts a location in map coordinates to a point in screen coordinates relative to the upper-left corner of the local scene view.

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 result screen point is visible in the local scene view. It will not be visible if it is outside the applied clipping area, is not within the current Viewpoint, or is blocked by the base surface or elevation layer.

If the input point does not have a spatial reference, it is assumed to be in the view's spatial reference.

If the input point's spatial reference is not the same as the view's, it is projected to the view's spatial reference. If the projection fails, then null is returned.

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

Return

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

Since

300.0.0

Parameters

point

A location defined within the spatial reference of the local scene view.