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
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
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
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |