Hi everyone,
I have an old project code that the other developer had built and maintained.
The source was based on Java Spring and he used cesium in jquery.
But he did installed the javascript packages using npm, but pasted manually, so I can’t check the cesiumjs version correctly.
There, he used the below code to make customized terrain.
But I’m trying to use the code in the new upgraded project based NextJs 14 version.
I installed cesium 1.117 version using npm install cesium
, but I can’t use the below code because recent Cesium version doesn’t support url option.
// Terain
var terrainProvider = new Cesium.CesiumTerrainProvider({
ellipsoid: ellipsoid,
url : terrainUrl,
requestVertexNormals : true
});
So I tried to use others like CesiumJs.CesiumTerrainProvider.fromUrl
, but I encountered the error like below.
An error occurred in “CesiumTerrainProvider”: Failed to obtain terrain tile X: 1 Y: 0 Level: 0. Error message: “RangeError: Invalid typed array length: 4225”
How can I solve this?
Please help me asap!