Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.46 KB

mapcontrol_trygetlocationfromoffset_418557555.md

File metadata and controls

42 lines (23 loc) · 1.46 KB
-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

Windows.UI.Xaml.Controls.Maps.MapControl.TryGetLocationFromOffset

-description

Converts a point on the map to a geographic location by using the specified altitude reference system.

-parameters

-param offset

A point on the map to convert to a geographic location.

-param desiredReferenceSystem

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.

-param location

When this method returns, contains the corresponding geographic location.

-returns

Returns true if the location is invalid; otherwise, false.

-remarks

Use this method instead of the GetLocationFromOffset method. The GetLocationFromOffset method has been deprecated.

-see-also

-examples