Sources may be configured with a projection, tile grids with an extent

An XYZ tile grid is constructed with an extent defining the bounds of the tile grid.
Respect the tileSize option for XYZ grids
Additional documentation