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] }) };