Why Im getting on console the error: 'This deferred has already been resolved' when I try to create two ArcGISImageServiceLayer on API JS Version 3.18 ??, I use the sandbox (ArcGIS API for JavaScript Sandbox ) and I only add:
var imageServiceLayer2 = new ArcGISImageServiceLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer", {
imageServiceParameters: params2,
opacity: 0.75
});
see my code here https://jsfiddle.net/sqooqhrv/#&togetherjs=xFy4Lduq1H
Santiago,
Yep I see this same issue. You should report this to esri tech support.
Hi Santiago Horcajo and Robert Scheitlin, GISP,
I have gone and logged a bug for this issue: BUG-000101026 : Adding multiple instances of ArcGISImageServiceLayers in the 3.18 JavaScript API produces the error "This deferred has already been resolved".
Thank you for pointing it out!