Finding out the extent of the default zoom levels of open layers

المشرف العام

Administrator
طاقم الإدارة
I'd like to reproduce the zoom levels of openlayers in postgis. I am not used to working with Javascript and am having difficulties to find out the exact extent in meters of the default zoom levels of openlayers. I cant find it anywhere on the internet.

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?



أكثر...
 
أعلى