public static IEnumerable <Point> ToPoints(this IEnumerable <Location> locations, MapView mapView) { return(locations.Select(location => mapView.LocationToViewportPoint(location))); }
public static IEnumerable <Location> ToLocations(this IEnumerable <Point> points, MapView mapView) { return(points.Select <Point, Location>(point => mapView.ViewportPointToLocation(point))); }