setTileGridForProjection(projection, tilegrid) {
    const proj = getProjection(projection);
    if (proj) {
      const projKey = getUid(proj);
      if (!(projKey in this.tileGridForProjection_)) {
        this.tileGridForProjection_[projKey] = tilegrid;
      }
    }
  }
Sets the tile grid to use when reprojecting the tiles to the given
projection instead of the default tile grid for the projection.

This can be useful when the default tile grid cannot be created
(e.g. projection has no extent defined) or
for optimization reasons (custom tile size, resolutions, ...).

@param {import("../proj.js").ProjectionLike} projection Projection.
@param {import("../tilegrid/TileGrid.js").default} tilegrid Tile grid to use for the projection.
@api