I have an OpenLayers map with EPSG:3857 projection. I would like to add WMTS layer http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO which support only matrix for EPSG:2180 and 4326.
Is any way to reproject this WMTS layer?
I was trying with this code but the layer is shown in wrong place.
var WMTS2 = new ol.layer.Tile({
opacity: 0.5,
extent: projectionExtent,
source: new ol.source.WMTS({
url: 'http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO',
layer: 'ORTOFOTOMAPA',
matrixSet: '2180',
format: 'image/jpeg',
projection: 'EPSG:2180',
tileGrid: new ol.tilegrid.WMTS({
origin: ol.extent.getTopLeft(projectionExtent),
resolutions: resolutions,
matrixIds: matrixIds
}),
extent: projectionExtent,
style: 'default'
})
});