function getSquaredTolerance(resolution, pixelRatio) {
  const tolerance = getTolerance(resolution, pixelRatio);
  return tolerance * tolerance;
}
@param {number} resolution Resolution.
@param {number} pixelRatio Pixel ratio.
@return {number} Squared pixel tolerance.