Hi,
I’m creating a Cesium Rectangle with bounds in WGS84 / EPSG4326 system. But there are a lot of misalignments and they don’t perfectly align as they did with mapbox-gl-js or deck.gl. Can anyone please take a look and tell me what is wrong?
const rasterSuperImposeLayer = new Cesium.Entity({
id: "raster-layer",
name: "Raster Layer",
rectangle: {
coordinates: Cesium.Rectangle.fromDegrees(
ESA_BOUNDS[0][0], // West
ESA_BOUNDS[3][1], // South
ESA_BOUNDS[2][0], // East
ESA_BOUNDS[1][1] // North
),
material: new Cesium.ImageMaterialProperty({
image: new Cesium.ConstantProperty(simulationLayerData.toString()),
transparent: true,
alpha: 0.4,
}),
clampToGround: true,
show: true,
},
show: true,
});
console.log("Adding new raster layer: ", rasterSuperImposeLayer);
viewer.entities.add(rasterSuperImposeLayer);