Trivial wrapper around createWmtsSource, creating a TileLayer based on the WMTS Source. See that function for a description of the parameters.
Creates an OpenLayers WMTS source based on a capabilities URL. This is mostly boilerplate around a fetch and OpenLayers' own optionsFromCapabilities.
The URL to the capabilities file
Any additional configuration we want when creating the source. Typically, this will be things like Matrix Set or format. See https://openlayers.org/en/latest/apidoc/module-ol_source_WMTS.html#.optionsFromCapabilities
A function converting the URL(s) reported by the capabilities to an array of other URLs. Typically, this can be used if the server uses a scheme of multiple subdomain aliases to work around the browser limitation on concurrent requests to the same domain, though this is less relevant in modern browsers.
Contains some recipes for creating complex OpenLayers objects. Currently only WMTS layers created from a Capabilities URL.