Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.97 KB

mapcontrol_getlocationfromoffset_1281571330.md

File metadata and controls

46 lines (27 loc) · 1.97 KB
-api-id -api-type
M:Windows.UI.Xaml.Controls.Maps.MapControl.GetLocationFromOffset(Windows.Foundation.Point,Windows.Devices.Geolocation.AltitudeReferenceSystem,Windows.Devices.Geolocation.Geopoint@)
winrt method

Windows.UI.Xaml.Controls.Maps.MapControl.GetLocationFromOffset

-description

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

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

-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 GetLocationFromOffset(Windows.Foundation.Point offset, Windows.Devices.Geolocation.Geopoint location) overload.

-param location

When this method returns, contains the corresponding geographic location.

-remarks

This method provides an instance of a Geopoint. That Geopoint contains a BasicGeoPosition. object. The desiredReferenceSystem parameter sets the Altitude field of that object.

This method will throw an exception if the point is invalid.

Note

An AltitudeReferenceSystem of Ellipsoid might not be supported.

-see-also

Display maps with 2D, 3D, and Streetside views.

-examples