function getTolerance(resolution, pixelRatio) {
  return (SIMPLIFY_TOLERANCE * resolution) / pixelRatio;
}
@param {number} resolution Resolution.
@param {number} pixelRatio Pixel ratio.
@return {number} Pixel tolerance.