Method ScreenToLocationAsync
ScreenToLocationAsync(Point)
Async method to convert a screen point relative to the upper left of the SceneView into a location accounting for 3D features within the Scene.
Declaration
public Task<MapPoint> ScreenToLocationAsync(Point screenPoint)
Parameters
Type | Name | Description |
---|---|---|
Xamarin. |
screenPoint | Screen point relative to the upper left |
Returns
Type | Description |
---|---|
System. |
A Map |
Remarks
This method checks for intersection between the input screen point and visible 3D features on the Scene.
It returns a point with X, Y and Z values matching the intersection point. If the input point does not
intersect a visible 3D feature, the Scene Surface
is used to retrieve the point values. If the input point does not intersect the Scene Surface or
any visible 3D features a null
value is returned.
This method differs from Screen
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |