Use cross-browser find
This commit is contained in:
@@ -465,7 +465,8 @@ export function optionsFromCapabilities(wmtsCap, config) {
|
|||||||
//in case of matrix limits, use matrix limits to calculate extent
|
//in case of matrix limits, use matrix limits to calculate extent
|
||||||
if (matrixLimits) {
|
if (matrixLimits) {
|
||||||
selectedMatrixLimit = matrixLimits[matrixLimits.length - 1];
|
selectedMatrixLimit = matrixLimits[matrixLimits.length - 1];
|
||||||
matrix = matrixSetObj.TileMatrix.find(
|
matrix = find(
|
||||||
|
matrixSetObj.TileMatrix,
|
||||||
(value) => value.Identifier === selectedMatrixLimit.TileMatrix
|
(value) => value.Identifier === selectedMatrixLimit.TileMatrix
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user