Skip to content

Commit cddcc7a

Browse files
committed
Website updates
1 parent 2211f53 commit cddcc7a

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/source/WMTS.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/source/WMTS.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,20 @@ export function optionsFromCapabilities(wmtsCap, config) {
476476
}
477477
}
478478

479+
const layerExtent = l['BoundingBox']?.find(
480+
(bbox) =>
481+
getProjection(bbox.crs) &&
482+
equivalent(getProjection(bbox.crs), projection),
483+
);
484+
479485
const resolution =
480486
(matrix.ScaleDenominator * 0.00028) / projection.getMetersPerUnit(); // WMTS 1.0.0: standardized rendering pixel size
481487
const origin = switchXY
482488
? [matrix.TopLeftCorner[1], matrix.TopLeftCorner[0]]
483489
: matrix.TopLeftCorner;
484490
const tileSpanX = matrix.TileWidth * resolution;
485491
const tileSpanY = matrix.TileHeight * resolution;
486-
let matrixSetExtent = matrixSetObj['BoundingBox'];
492+
let matrixSetExtent = layerExtent?.extent ?? matrixSetObj['BoundingBox'];
487493
if (matrixSetExtent && switchXY) {
488494
matrixSetExtent = [
489495
matrixSetExtent[1],

0 commit comments

Comments
 (0)