code: function determineMaxWidth(json, version) {
  	var maxWidth = 0;
  
  	// Only available in WMS 1.3.0
  	if (version == '1.3.0') {
  		if (json.WMS_Capabilities.Service) {
  			if (json.WMS_Capabilities.Service[0]) {
  				if (json.WMS_Capabilities.Service[0].MaxWidth) {
  					if (json.WMS_Capabilities.Service[0].MaxWidth[0]) {
  						maxWidth = json.WMS_Capabilities.Service[0].MaxWidth[0];
  					}
  				}
  			}
  		}
  	}
  
  	return maxWidth;
  }
docs: It determines the max width of a GetMap request in pixels.
  
  @param json
  {object} GetCapabilities document as JSON.
  @param version
  {string} Version of GetCapabilities document.
  @returns {integer} Max width of a GetMap request in pixels. It returns 0, if
  no value is available.