Hi, I’m currently testing the new TypeScript support and run into some problems. Before, the following code would compile and run properly:
const urlTemplateImageryProvider = new UrlTemplateImageryProvider({
...
});
this.viewer.scene.imageryLayers.addImageryProvider(urlTemplateImageryProvider);
But now the compiler throws an error, because addImageryProvider expects an ImageryProvider, and the special versions like UriTemplateImageryProvider, or the WMS / WMTS provider are no ImageryProvider.
How can I solve this?