Example of a WMTS source created from a WMTS capabilities document.
See the wmts-layer-from-capabilities.js source to see how this is done.