Open phillashworth opened 2 months ago
The OGC spec has a detailed explanation: https://docs.ogc.org/is/17-083r4/17-083r4.html
This BBOX guide shows the usage of morecantile to calculate a grid. You can extract the resolutions from the JSON output.
I'm using T-Rex to serve OSM openmaptiles in a local projection based on your
openmaptiles.toml
andusergrid.toml
examples and consuming the tiles in OpenLayers.I'm reprojecting to British National Grid EPSG:27700 which works brilliantly thanks :)
My question regards the user grid resolutions array, I've seen many articles on how to calculate this for web mercator but not for other projections. By trial and error I've managed to find values that perform well and display an appropriate level of details at the various map zoom levels but I'd like to understand how to calculate the resolutions for the custom projection in a more scientific manner. Any pointers would be greatly appreciated.