From ff1ca9fbff0aba98629cd307b6b40e54b7b3386a Mon Sep 17 00:00:00 2001 From: elias couppe Date: Wed, 5 Jun 2024 14:28:28 +0200 Subject: [PATCH] fix(ol:Layers): correction tileMatrices[0] introduit par Maj des pyramides --- src/OpenLayers/Layers/SourceWMTS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenLayers/Layers/SourceWMTS.js b/src/OpenLayers/Layers/SourceWMTS.js index ab109f77..7edb2253 100644 --- a/src/OpenLayers/Layers/SourceWMTS.js +++ b/src/OpenLayers/Layers/SourceWMTS.js @@ -95,7 +95,7 @@ var SourceWMTS = (function (WMTSExtended) { tileGrid : new WMTSTileGrid({ resolutions : wmtsParams.nativeResolutions, matrixIds : wmtsParams.matrixIds, - origin : [wmtsParams.tileMatrices[0].topLeftCorner.x, wmtsParams.tileMatrices[0].topLeftCorner.y] + origin : [Object.values(wmtsParams.tileMatrices)[0].topLeftCorner.x, Object.values(wmtsParams.tileMatrices)[0].topLeftCorner.y] }) };