I have the following code that creates a cesium widget:
var viewer = new Cesium.CesiumWidget('cesiumContainer');
Bing provider is loaded by default, as the documentation states. How can I change the provider runtime? I tried the following snippet with no luck. The old provider disappears but the globe shows only in blue.
var layers = viewer.imageryLayers;
Please note that layer is an object that I get from Cesium.createDefaultImageryProviderViewModels collection.