setTileUrlFunction(tileUrlFunction, key) {
    this.tileUrlFunction = tileUrlFunction;
    if (typeof key !== 'undefined') {
      this.setKey(key);
    } else {
      this.changed();
    }
  }
Deprecated.  Use an ImageTile source instead.
Set the tile URL function of the source.
@param {import("../Tile.js").UrlFunction} tileUrlFunction Tile URL function.
@param {string} [key] Optional new tile key for the source.
@api