Check if the EX_GeographicBoundingBox is correctly parsed
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user