Kymera Maps: calculate zoom level

Hello, I have a set of datapoints and need to set the view to show all the points: I have centered the view, but cannot figure out how to calculate the zoom level?