Finished first version of zoom level calculation