Share via


MapControl.GetLocationFromOffset Method

Definition

Overloads

GetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic ___location.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

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.

GetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic ___location.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

public:
 virtual void GetLocationFromOffset(Point offset, [Out] Geopoint ^ & ___location) = GetLocationFromOffset;
void GetLocationFromOffset(Point const& offset, [Out] Geopoint const& & ___location);
/// [Windows.Foundation.Metadata.Overload("GetLocationFromOffset")]
void GetLocationFromOffset(Point const& offset, [Out] Geopoint const& & ___location);
public void GetLocationFromOffset(Point offset, out Geopoint ___location);
[Windows.Foundation.Metadata.Overload("GetLocationFromOffset")]
public void GetLocationFromOffset(Point offset, out Geopoint ___location);
Public Sub GetLocationFromOffset (offset As Point, ByRef ___location As Geopoint)

Parameters

offset
Point

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

___location
Geopoint

When this method returns, contains the corresponding geographic ___location.

Attributes

Remarks

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

See also

Applies to

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

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.

public:
 virtual void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, [Out] Geopoint ^ & ___location) = GetLocationFromOffset;
/// [Windows.Foundation.Metadata.Overload("GetLocationFromOffsetWithReferenceSystem")]
void GetLocationFromOffset(Point const& offset, AltitudeReferenceSystem const& desiredReferenceSystem, [Out] Geopoint const& & ___location);
[Windows.Foundation.Metadata.Overload("GetLocationFromOffsetWithReferenceSystem")]
public void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, out Geopoint ___location);
Public Sub GetLocationFromOffset (offset As Point, desiredReferenceSystem As AltitudeReferenceSystem, ByRef ___location As Geopoint)

Parameters

offset
Point

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

desiredReferenceSystem
AltitudeReferenceSystem

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.

___location
Geopoint

When this method returns, contains the corresponding geographic ___location.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

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.

Applies to