Hello,
I'm looking for a solution that allows to add elevation data on Cesium without using an internet connection.
After some research, I found and followed a tutorial that used the tool : Cesium Terrain Builder. So I generated the .terrain files, added the folder to the TerrainProvider parameter, and finally created a layer.json file.
Content of layer.json file :
{
"tilejson": "2.1.0",
"format": "heightmap-1.0",
"version": "1.0.0",
"scheme": "tms",
"tiles": ["{z}/{x}/{ReverseY}"]
}
And I also edited Wamp's .htaccess to add:
<IfModule mod_headers.c>
<FilesMatch ".terrain$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
</IfModule>
However, on the desired area, there is no elevation data and I have no log on the browser console.
Any help would be appreciated.
Thanks.
Happy Christmas.
Best Regards,
Matthieu Gorce.