webmapserviceimageryprovider is undefined ?

Hello everyone,

I ran the following code and I am getting back that my webmapserviceimageryprovider is undefined. Why is this? I tried to set it to a new WebMapServiceImageryProvider() but that doesn’t work either.

viewer = new Cesium.Viewer(‘cesiumContainer’, {});

var wms = new Cesium.WebMapServiceImageryProvider({

url: myUrlHere,

layers : ‘0’,

proxy: new Cesium.DefaultProxy(’/proxy/’)



Error : “Cannot read property “addImageryProvider” of undefined!”

Any help would be appreciated. Thanks!


viewer.scene.imageryLayers is what i should be looking for. The Cesium Documentation misled me.