Problem with two ArcGISImageServiceLayer on API JS Version 3.18

761
2
11-15-2016 12:33 AM
SantiagoHorcajo
New Contributor II

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

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Santiago,

   Yep I see this same issue. You should report this to esri tech support.

0 Kudos
BradleySnider
New Contributor III

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!