load multiple terrain providers.

How to load multiple dtm datasets on cesium map using asset ids .something like

var viewer = new Cesium.Viewer('cesiumContainer',{
    terrainProvider : new Cesium.CesiumTerrainProvider({
        url: Cesium.IonResource.fromAssetId(6015,6011,6012)
    })
});

``

The fromAssetId function only takes one number as an assetId.

I don’t think CesiumJS allows multiple terrain providers on the client, but you should be able to combine your terrain on the server (in Cesium ion) and just serve the combined terrain as one asset.

Thanks for the reply.But i could not find any option to combine the assets in ion.Please help me with this.

Sorry I wasn’t clear earlier - when you’re adding an asset (https://cesium.com/ion/addasset), just drag all your terrain files and upload them together, and they’ll be combined into one asset.

Let me know if that works!

That worked for me anyway. Not sure about OP.

Thanks

Don’t worry it worked for me also.But i don’t want to tile all the terrain assets together.

hi,have you solve this problem?

在 2019年12月16日星期一 UTC+8下午5:58:11,san写道:

Yes.While uploading terrain data to cesium ion you can choose list of terrain data(base terrain) to merge your terrain with.You can also add multiple terrain data at once.I added multiple data and selected cesium world terrain as base terrain