geo-data / cesium-terrain-server

A basic server for serving up filesystem based tilesets representing Cesium.js terrain models
271 stars 111 forks source link

Available gets removed from layer.json before it is sent #27

Open crocij opened 2 years ago

crocij commented 2 years ago

I ran into a problem regarding the layer.json that is handed out by the server. Currently the available array is removed from the sent json object. This prevents CesiumJs from rendering the terrain. A fix for testing is to manually add the available field in node_modules/cesium/Source/Core/CesiumTerrainProvider.js in the function parseMetadataSuccess to the data object.

esagulto commented 2 years ago

Hello, I also have the same problem. Using the docker container sends out all the data needed in the layer.json. The only problem is that when using the docker container, the terrain does not load.