I get data like in example in this post How to fix EPSG:4326 with WMTS incorrect map overlay ,which even has the same source I just need. However, the map is shifted.
private createLayer() {
this.service
.getTypesLayersFilter()
.subscribe((resp: TypesLayersFilters) => {
const filter = first(resp.WMTS);
const parser = new WMTSCapabilities();
const layer = 'ORTOFOTOMAPA';
const matrixSet = 'EPSG:4326';
this.wmtsService.getData().subscribe(text => {
const result = parser.read(text);
const options = optionsFromCapabilities(result, {
layer,
matrixSet,
crossOrigin: true
});
const layerNew = new TileLayer({
source: new WMTS(options),
opacity: 0.7,
name: 'WMTS',
});
});
});
}
Source: https://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO?SERVICE=WMTS&REQUEST=GetCapabilities
getData() {
const url =
'https://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO';
const data = {
SERVICE: 'WMTS',
REQUEST: 'GetCapabilities'
};
const options: any = { params: data, responseType: 'text' };
return this.http.get(url, {
...options,
params: this.toHttpParams(options.params)
});
}
What can cause this shift, am I doing something wrong? Maybe the solution would be to move the map, if possible and that's how it should be done ?