Errors when imageryProviderViewModels is defined

I am defining the imageryProviderViewModels, when instantiating the viewer. However, I am getting the following error:

I have provided a link to the Sandcastle code.

Any help is highly appreciated.


You need to use fromAssetId instead of using the constructor.

See IonImageryProvider - Cesium Documentation

This has recently changed (version 1.107 i think).

So in your sandcastle, use:
return Cesium.IonImageryProvider.fromAssetId(3);
instead of
return new Cesium.IonImageryProvider({ assetId: 3 });

1 Like

Thanks for this

1 Like