developmentseed / tipg

Simple and Fast Geospatial OGC Features and Tiles API for PostGIS.
https://developmentseed.org/tipg/
MIT License
153 stars 23 forks source link

Switch from `{tileMatrix}/{tileRow}/{tileCol}` to `{z}/{x}/{y}` #63

Closed vincentsarago closed 1 year ago

vincentsarago commented 1 year ago

The tiles making up a tileset containing available data SHALL be available via an HTTP GET request to a URI that can be built from a template containing two or three variables. If the tileset is available for more than one tilematrix, the template SHALL contain three variables (such as {tileMatrix}, {tileRow} and {tileCol} as defined by the tileset conformance class, or {z}, {y} and {x}). If the tileset is available for a single tilematrix, the template SHALL contain two variables (such as {tileRow} and {tileCol} as defined by the tileset conformance class, or {y} and {x}). The URI is obtained by substituting the variables by their respective valid values.

ref: https://docs.ogc.org/is/20-057/20-057.html#toc28

Most of the map client (Mapbox/Maplibre) will understand {z}/{x}/{y} but not {tileMatrix}/{tileRow}/{tileCol} (https://github.com/developmentseed/tipg/blob/main/tipg/templates/map.html#L75)