-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.Controls.Maps.MapControl.TryGetLocationFromOffset(Windows.Foundation.Point,Windows.Devices.Geolocation.AltitudeReferenceSystem,Windows.Devices.Geolocation.Geopoint@) |
winrt method |
Converts a point on the map to a geographic location by using the specified altitude reference system.
A point on the map to convert to a geographic location.
The altitude reference system of the geographic point. A value of Unspecified for the altitude reference system has the same effect as using the default TryGetLocationFromOffset(Windows.Foundation.Point offset, Windows.Devices.Geolocation.Geopoint location) overload.
When this method returns, contains the corresponding geographic location.
Returns true if the location is invalid; otherwise, false.
Use this method instead of the GetLocationFromOffset method. The GetLocationFromOffset method has been deprecated.