Hi Nakula,
Does the Imagery Layers Sandcastle example work if you change the CesiumWidget to a Viewer widget? Note that if you only change the widget type and nothing else, you'll see an error reported while constructing the object as you cannot initialize the Viewer widget with an imagery layer without also disabling the baseLayerPicker:
var widget = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker : false,
imageryProvider : new Cesium.ArcGisMapServerImageryProvider({
url : '//
server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer'
})
});
You'll see that in this sand castle example, it shows two imagery providers. Don't forget to also look at
http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Imagery%20Layers%20Manipulation.html&label=Showcases that demonstrates how to layer multiple imagery layers.
Regarding the TypeError: widget.centralBody.getImageryLayers is not a function, we've been making breaking changes recently in an effort to stablize the API for a 1.0. In that particular case, centralBody is not called globe and we no longer use setter/getter methods in favor of javascript properties.
Alex