app/scripts/PixiTrack.js
function getResolutionBasedResolutionText(resolutions, zoomLevel) {
  const sortedResolutions = resolutions.map(x => +x).sort((a, b) => b - a);
  const resolution = sortedResolutions[zoomLevel];
  const maxResolutionSize = sortedResolutions[sortedResolutions.length - 1];

  return formatResolutionText(resolution, maxResolutionSize);
}
function getResolutionBasedResolutionText(resolutions, zoomLevel) {
  const sortedResolutions = resolutions.map(x => +x).sort((a, b) => b - a);
  const resolution = sortedResolutions[zoomLevel];
  const maxResolutionSize = sortedResolutions[sortedResolutions.length - 1];

  return formatResolutionText(resolution, maxResolutionSize);
}
function getResolutionBasedResolutionText ( resolutions , zoomLevel ) { const sortedResolutions = resolutions . map ( x => + x ) . sort ( ( a , b ) => b - a ) ; const resolution = sortedResolutions [ zoomLevel ] ; const maxResolutionSize = sortedResolutions [ sortedResolutions . length - 1 ] ; return formatResolutionText ( resolution , maxResolutionSize ) ; }
Get a text description of a resolution based on a zoom level
and a list of resolutions

@param {list} resolutions: A list of resolutions (e.g. [1000,2000,3000])
@param {int} zoomLevel: The current zoom level (e.g. 4)

@returns {string} A formatted string representation of the zoom level
(e.g. "30K")
Get a text description of a resolution based on a zoom level and a list of resolutions