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} */ ({}), /** @type {ol.format.EXGeographicBoundingBoxType} */ ({}),
ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_, ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_,
node, objectStack); node, objectStack);
return [ if (goog.isDef(geographicBoundingBox)) {
geographicBoundingBox.westBoundLongitude, return [
geographicBoundingBox.southBoundLatitude, geographicBoundingBox.westBoundLongitude,
geographicBoundingBox.eastBoundLongitude, geographicBoundingBox.southBoundLatitude,
geographicBoundingBox.northBoundLatitude geographicBoundingBox.eastBoundLongitude,
]; geographicBoundingBox.northBoundLatitude
];
} else {
return undefined;
}
}; };