Fix WMTS wrapX detection if WGS84BoundingBox is not set
This commit is contained in:
1 parent
8520a18eae
commit
3ebcdb45d9
1 file changed
+3
-2
@@ -498,8 +498,9 @@ export function optionsFromCapabilities(wmtsCap, config) {
|
||||
const wgs84ProjectionExtent = getProjection('EPSG:4326').getExtent();
|
||||
extent = matrixSetExtent;
|
||||
wrapX =
|
||||
wgs84BoundingBox[0] === wgs84ProjectionExtent[0] &&
|
||||
wgs84BoundingBox[2] === wgs84ProjectionExtent[2];
|
||||
!wgs84BoundingBox ||
|
||||
(wgs84BoundingBox[0] === wgs84ProjectionExtent[0] &&
|
||||
wgs84BoundingBox[2] === wgs84ProjectionExtent[2]);
|
||||
}
|
||||
|
||||
const tileGrid = createFromCapabilitiesMatrixSet(
|
||||
|
||||
Reference in new issue
Block a user