code: function(resolution, latitude) {
    var degs = metersToLongitudeDegrees(resolution, latitude);
    return (Math.abs(degs) > 0.000001) ?  Math.max(1, Math.log2(360/degs)) : 1;
  }
docs: Calculates the bits necessary to reach a given resolution, in meters, for the longitude at a
  given latitude.
  
  @param {number} resolution The desired resolution.
  @param {number} latitude The latitude used in the conversion.
  @return {number} The bits necessary to reach a given resolution, in meters.