Show / Hide Table of Contents

Method LocationToScreen

LocationToScreen(MapPoint)

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

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

The location in world coordinates to convert to screen coordinate.

Returns
Type Description
Point

Screen location in this scene view control's local display coordinate system

Remarks

The screen location returned is relative to the upper left corner of the scene view control. If you need a location relative to another visual element, use the TransformToVisual method to create a transformation between the map and another visual element.

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 100.14

LocationToScreen(MapPoint, out LocationVisibility)

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

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

The location in world coordinates to convert to screen coordinate.

LocationVisibility visibility

The visibility of the point on the screen.

Returns
Type Description
Point

Screen location in this scene view control's local display coordinate system.

Remarks

The screen location returned is relative to the upper left corner of the scene view control. If you need a location relative to another visual element, use the TransformToVisual method to create a transformation between the map and another visual element.

Exceptions
Type Condition
ArgumentNullException

location

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 100.14
In This Article
Back to top Copyright © 2021 Esri.