Check if the EX_GeographicBoundingBox is correctly parsed

This commit is contained in:
Frederic Junod
2014-03-10 17:18:04 +01:00
parent ea8c004c76
commit 2fdae368c2

View File

@@ -127,12 +127,16 @@ ol.format.WMSCapabilities.readEXGeographicBoundingBox_ =
/** @type {ol.format.EXGeographicBoundingBoxType} */ ({}),
ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_,
node, objectStack);
return [
geographicBoundingBox.westBoundLongitude,
geographicBoundingBox.southBoundLatitude,
geographicBoundingBox.eastBoundLongitude,
geographicBoundingBox.northBoundLatitude
];
if (goog.isDef(geographicBoundingBox)) {
return [
geographicBoundingBox.westBoundLongitude,
geographicBoundingBox.southBoundLatitude,
geographicBoundingBox.eastBoundLongitude,
geographicBoundingBox.northBoundLatitude
];
} else {
return undefined;
}
};