code: function getWidthBasedResolutionText(
    zoomLevel, maxWidth, binsPerDimension, maxZoom
  ) {
    const resolution = maxWidth / ((2 ** zoomLevel) * binsPerDimension);
  
    // we can't display a NaN resolution
    if (!Number.isNaN(resolution)) {
      // what is the maximum possible resolution?
      // this will determine how we format the lower resolutions
      const maxResolutionSize = maxWidth / ((2 ** maxZoom) * binsPerDimension);
  
      const pp = precisionPrefix(maxResolutionSize, resolution);
      const f = formatPrefix(`.${pp}`, resolution);
      const formattedResolution = f(resolution);
  
      return formattedResolution;
    }
    console.warn(
      'NaN resolution, screen is probably too small. Dimensions:',
      this.dimensions,
    );
  
    return '';
  }
docs: Get a text description of the resolution based on the zoom level
  max width of the dataset, the bins per dimension and the maximum
  zoom.
  
  @param {int} zoomLevel The current zoomLevel (e.g. 0)
  @param {int} max_width The max width
  (e.g. 2 ** maxZoom * highestResolution * binsPerDimension)
  @param {int} bins_per_dimension The number of bins per tile dimension
  (e.g. 256)
  @param {int} maxZoom The maximum zoom level for this tileset
  
  @returns {string} A formatted string representation of the zoom level
  (e.g. "30K")