I'm trying to use WebMapTileServiceImageryProvider as ImageryProvider from Geoserver layer. I'm seeing that the browser is requesting correctly the tiled images to the server (and the server sends to the browser the images), but I can't see anything on Cesium.
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
imageryProvider : new Cesium.WebMapTileServiceImageryProvider({
url : ‘http://localhost:8080/geoserver/gwc/service/wmts’,
layer : ‘PNOA_Mun_Com’,
style : ‘default’,
format : ‘image/jpeg’,
tileMatrixSetID : ‘EPSG:4326’,
tileMatrixLabels : [‘EPSG:4326:0’, ‘EPSG:4326:1’, ‘EPSG:4326:2’,‘EPSG:4326:3’,‘EPSG:4326:4’,‘EPSG:4326:5’,‘EPSG:4326:6’,‘EPSG:4326:7’,‘EPSG:4326:8’,‘EPSG:4326:9’],
maximumLevel: 10,
rectangle: new Cesium.Rectangle(
Cesium.Math.toRadians(-2),
Cesium.Math.toRadians(38),
Cesium.Math.toRadians(2),
Cesium.Math.toRadians(42)),
tilingScheme: new Cesium.GeographicTilingScheme(),
credit : new Cesium.Credit(‘PNOA’)
}),
baseLayerPicker : false
});
Cesium is making the correct request to the server, and the server is sending the tiles to the browser. The problem is that I can’t see any tile of my layer on the map.
The console show errors because this tiles isn't on the server. It's
normal behavior. My problem is, why can't see on the map the tiles
that are correctly downloaded from the server?. I only see a blue
sphere, without any tile... I can't understand why, the tiles is
correctly downloaded from server.
Hi, finally, I find where is the problem. The problem is CORS, I add a proxy in my web server, and works fine. I thought that, if browser was able to download the image, Cesium would be able to drawn it. But not.