public static RadarBounds GetRadarBoundsForScreen(this MKMapView map) { RadarBounds bounds = map.GetRadarBounds(); bounds.Width = map.Frame.Size.Width; bounds.Height = map.Frame.Size.Height; return(bounds); }
public static RadarBounds GetRadarBoundsForScreen(this MKMapView map) { RadarBounds bounds = map.GetRadarBounds(); var rect = map.ConvertRegion(map.Region, map.Superview); bounds.Width = rect.Width * UIScreen.MainScreen.Scale; bounds.Height = rect.Height * UIScreen.MainScreen.Scale; return(bounds); }