function createFromTemplates(templates, tileGrid) {
  const len = templates.length;
  const tileUrlFunctions = new Array(len);
  for (let i = 0; i < len; ++i) {
    tileUrlFunctions[i] = createFromTemplate(templates[i], tileGrid);
  }
  return createFromTileUrlFunctions(tileUrlFunctions);
}
@param {Array<string>} templates Templates.
@param {import("./tilegrid/TileGrid.js").default} tileGrid Tile grid.
@return {import("./Tile.js").UrlFunction} Tile URL function.