Show / Hide Table of Contents

Method LocationToScreen

LocationToScreen(MapPoint)

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

Declaration
public Point LocationToScreen(MapPoint location)
Parameters
Type Name Description
MapPoint location

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

Returns
Type Description
Point

Screen location in this map control's local display coordinate system

Remarks

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

See Also
ScreenToBaseSurface(Point)
ScreenToLocationAsync(Point, CancellationToken)
LocationToScreen(MapPoint, out LocationVisibility)

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300

LocationToScreen(MapPoint, out LocationVisibility)

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

Declaration
public Point LocationToScreen(MapPoint location, out LocationVisibility visibility)
Parameters
Type Name Description
MapPoint location
LocationVisibility visibility
Returns
Type Description
Point
Remarks

The screen coordinates are in device-independent pixels (DIP) relative to the upper-left corner of the scene view at position 0,0. The visibility parameter indicates whether the 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 an empty point is returned.

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

See Also
ScreenToBaseSurface(Point)
ScreenToLocationAsync(Point, CancellationToken)
LocationToScreen(MapPoint)

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.