public static MGLMapCamera ToNative(this CameraBounds cameraBounds, MGLMapView map) { var camera = map.CameraThatFitsCoordinateBounds( cameraBounds.Bounds.ToNative(), cameraBounds.Padding.ToEdgeInsets() ); var heading = cameraBounds.Bearing ?? camera.Heading; var pitch = (nfloat)(cameraBounds.Tilt ?? camera.Pitch); var result = MGLMapCamera.CameraLookingAtCenterCoordinateAndAltitude( camera.CenterCoordinate, camera.Altitude, pitch, heading ); return(result); }