Use getters of TileGrid

No more magic numbers in th definiton of WMTS layers for print.