Use cross-browser find

This commit is contained in:
Andreas Hocevar
2020-06-11 12:15:36 +02:00
parent 1ef103ed66
commit 66de2cfd81

View File

@@ -465,7 +465,8 @@ export function optionsFromCapabilities(wmtsCap, config) {
//in case of matrix limits, use matrix limits to calculate extent
if (matrixLimits) {
selectedMatrixLimit = matrixLimits[matrixLimits.length - 1];
matrix = matrixSetObj.TileMatrix.find(
matrix = find(
matrixSetObj.TileMatrix,
(value) => value.Identifier === selectedMatrixLimit.TileMatrix
);
}