With the function ST_Expand I can create a shape similar to a zoom level. I would like to use that function and recreate the default zoom levels 12, 13 and 14 of OpenLayers. How do I do that?
I am thinking of finding out the distance of the extent from OpenLayers, and using that as an input for the function ST_Expand. But how do I find that distance?