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 Function ConvertViewportPointToGeoCoordinate ( _
    viewportPoint As Point _
) As GeoCoordinate
public GeoCoordinate ConvertViewportPointToGeoCoordinate(
    Point viewportPoint


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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also


Map Class

Microsoft.Phone.Maps.Controls Namespace