Hi,
I think this is an old question - but can I display a single georeferenced tif-image in Cesium or not ?
The following code works fo png but not for tif:
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var layers = viewer.scene.imageryLayers;
layers.addImageryProvider(new Cesium.SingleTileImageryProvider({
url : ‘…/images/testimage.tif’,
// url : ‘…/images/Cesium_Logo_Color_Overlay.png’,
rectangle : Cesium.Rectangle.fromDegrees(-75.0, 28.0, -67.0, 29.75)
}));
The png example works fine but with the tif image I get the error:
An error occurred in “SingleTileImageryProvider”: Failed to load image …/images/testimage.tif.
Has anyone a solution or tip?
Rüdiger