function buildTerrainResource(terrainProvider, quadKey, version, request) {
  version = defined(version) && version > 0 ? version : 1;
  return terrainProvider._metadata.resource.getDerivedResource({
    url: `flatfile?f1c-0${quadKey}-t.${version.toString()}`,
    request: request,
  });
}
Makes sure we load availability data for a tile

@param {number} x The X coordinate of the tile for which to request geometry.
@param {number} y The Y coordinate of the tile for which to request geometry.
@param {number} level The level of the tile for which to request geometry.
@returns {undefined}