function defaultLoadFunction(tile, url) {
  tile.setLoader(
    /**
     * @param {import("../extent.js").Extent} extent Extent.
     * @param {number} resolution Resolution.
     * @param {import("../proj/Projection.js").default} projection Projection.
     */
    function (extent, resolution, projection) {
      loadFeaturesXhr(
        url,
        tile.getFormat(),
        extent,
        resolution,
        projection,
        tile.onLoad.bind(tile),
        tile.onError.bind(tile),
      );
    },
  );
}
Sets the loader for a tile.
@template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
@param {import("../VectorTile.js").default<FeatureType>} tile Vector tile.
@param {string} url URL.