Method LocationToScreen
LocationToScreen(MapPoint)
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)
Parameters
| Type | Name | Description |
|---|---|---|
| MapPoint | location | A location defined within the spatial reference of the local scene view. |
Returns
| Type | Description |
|---|---|
| Point | The screen location of the coordinate. The screen coordinates are in device-independent pixels (DIP) relative to the upper-left corner of the scene view at position 0,0. |
Remarks
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.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Windows | 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 | A location defined within the spatial reference of the local scene view. |
| LocationVisibility | visibility | The visibility of the point on the screen. |
Returns
| Type | Description |
|---|---|
| Point | A location to screen result object. If an error occurs, |
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 Windows | 300 |