AnsweredAssumed Answered

add more than two sub-layers with MapImageLayer version 4.12?

Question asked by ICEA on Oct 18, 2019
Latest reply on Oct 18, 2019 by rscheitlin

Layers = new MapImageLayer({
url:"http://0.0.0.0:6080/arcgis/rest/services/VISOR/MapServer",
sublayers:[
{
id: 2,
visible:true
},
{
id: 8,
visible: true
}

 

this works fine but when add 1 more id layer stop working, I'm based on this example MapImageLayer - Toggle sublayer visibility | ArcGIS API for JavaScript 4.13 , but I don't think it works very well either.

 

Can you help me?

Outcomes