Click or drag to resize

SceneViewLocationToScreen Method (MapPoint, LocationVisibility)

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

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Point LocationToScreen(
	MapPoint location,
	out LocationVisibility visibility
)

Parameters

location
Type: Esri.ArcGISRuntime.GeometryMapPoint
The location in world coordinates to convert to screen coordinate.
visibility
Type: Esri.ArcGISRuntime.UILocationVisibility
The visibility of the point on the screen.

Return Value

Type: Point
Screen location in this scene view control's local display coordinate system
Exceptions
ExceptionCondition
ArgumentNullExceptionlocation
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