ConvertViewportPointToGeoCoordinate Method
Collapse the table of content
Expand the table of content

Map.ConvertViewportPointToGeoCoordinate Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts the specified point in the viewport of the Map control to a GeoCoordinate.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

public GeoCoordinate ConvertViewportPointToGeoCoordinate(
	Point viewportPoint
)

Parameters

viewportPoint
Type: System.Windows.Point
The point in the viewport of the Map control to convert to a GeoCoordinate.

Return Value

Type: System.Device.Location.GeoCoordinate
The GeoCoordinate that corresponds to the specified point in the viewport of the Map control.

If you specify a value for viewportPoint that’s above the horizon – that is, the point is in the sky – the ConvertViewportPointToGeoCoordinate method returns null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft