I have a problem rendering Austrian raster-data via ImageWMS in an Angular App. I use php on server side (virtual server) and I am not able to redirect the link to avoid CORS problem.
Any hint is much appreciated, many thanks in advance - Susanne
Here the example code:
var bounds = [1700000, 6200000, 1800000, 6300000];
let tt = new ImageLayer({
gname: 'Kataster-BEV',
source: new ImageWMS({
matrixSet: 'google3857',
projection: this.projectionService.projGoogle,
params: {
'LAYERS': 'CP.CadastralZoning_Zoning,CP.CadastralParcel_Parcel',
'FORMAT': 'image/png',
'TRANSPARENT': 'FALSE',
},
serverType: 'geoserver',
url: "redirect.php",
crossOrigin: 'anonymous',
extent: bounds,
wrapX: true
})
});
url to redirect: "https://wsa.bev.gv.at/GeoServer/Interceptor/Wms/CP/INSPIRE_KUNDEN-ddf0f80a-ec58-4138-833d-a773ecd555b6?REQUEST=GetMap&STYLES=&width=1500&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE",
to avoid additional problems I dont pass the url to the php script but set the url in the script directly