/// <summary> /// Returns the latitude and longitude corresponding to a screen point. /// </summary> /// <param name="p"> /// The screen point. /// </param> /// <returns>The latitude and longitude corresponding to the screen point.</returns> public ILocation PointToLocation(Point p) { TheMap.GetLocationFromOffset(p, out Geopoint loc); return(new BingLocation(loc.Position.Latitude, loc.Position.Longitude)); }