code: function(size) {
      return function limitResolution(params) {
        if (params.width <= 0 || params.height <= 0) {
          return params;
        }
        var width = params.width;
        var minZoom = pixelRatio() * width / size;
        params.zoom = clamp(params.zoom, minZoom, Infinity);
        return params;
      };
    }
docs: Returns a view limiter that prevents zooming in beyond the given
  resolution.
  @param {number} size The image width in pixels.
  @return {FlatViewLimiter}