I would like to add a WMTS tile endpoint to Mapbox-GL-JS, which only supports
"XYZ" or TMS tiling schemes. According to what I understand of the WMTS specification the two seem to have the same zoom scheme, so perhaps it's possible to apply some kind of maths to the
Y-coordinates to get the right WMTS coordinates.
But I can't figure out what that formula would be - I can't seem to find the right definition.
What is the formular to convert an XYZ tile specifier to WMTS?