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/’)
});
viewer.imageryLayers.addImageryProvider(wms);
Error : “Cannot read property “addImageryProvider” of undefined!”
Any help would be appreciated. Thanks!