Merge pull request #11543 from sweco-dkjesh/main
wmts matrixset null pointer fix and improved handling of Identifier
This commit is contained in:
@@ -459,10 +459,16 @@ export function optionsFromCapabilities(wmtsCap, config) {
|
||||
//in case of matrix limits, use matrix limits to calculate extent
|
||||
if (matrixLimits) {
|
||||
selectedMatrixLimit = matrixLimits[matrixLimits.length - 1];
|
||||
matrix = find(
|
||||
const m = find(
|
||||
matrixSetObj.TileMatrix,
|
||||
(value) => value.Identifier === selectedMatrixLimit.TileMatrix
|
||||
(tileMatrixValue) =>
|
||||
tileMatrixValue.Identifier === selectedMatrixLimit.TileMatrix ||
|
||||
matrixSetObj.Identifier + ':' + tileMatrixValue.Identifier ===
|
||||
selectedMatrixLimit.TileMatrix
|
||||
);
|
||||
if (m) {
|
||||
matrix = m;
|
||||
}
|
||||
}
|
||||
|
||||
const resolution =
|
||||
|
||||
Reference in New Issue
Block a user