index.js
function determineMaxHeight(json, version) {
	var maxHeight = 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].MaxHeight) {
					if (json.WMS_Capabilities.Service[0].MaxHeight[0]) {
						maxHeight = json.WMS_Capabilities.Service[0].MaxHeight[0];
					}
				}
			}
		}
	}

	return maxHeight;
}
function determineMaxHeight(json, version) {
	var maxHeight = 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].MaxHeight) {
					if (json.WMS_Capabilities.Service[0].MaxHeight[0]) {
						maxHeight = json.WMS_Capabilities.Service[0].MaxHeight[0];
					}
				}
			}
		}
	}

	return maxHeight;
}
function determineMaxHeight ( json , version ) { var maxHeight = 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 ] . MaxHeight ) { if ( json . WMS_Capabilities . Service [ 0 ] . MaxHeight [ 0 ] ) { maxHeight = json . WMS_Capabilities . Service [ 0 ] . MaxHeight [ 0 ] ; } } } } } return maxHeight ; }
It determines the max height of a GetMap request in pixels.

@param json
{object} GetCapabilities document as JSON.
@param version
{string} Version of GetCapabilities document.
@returns {integer} Max height of a GetMap request in pixels. It returns 0, if
no value is available.
It determines the max height of a GetMap request in pixels .