mattprice

MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4.

Discussion created by mattprice on Jul 19, 2017
Latest reply on Nov 1, 2017 by yue.zhou@oracle.com

 

 

I have submitted the following bug for this issue: [BUG-000106674: MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4.] The workaround is to programmatically set the sublayer's visibility as follows:     var layer = new MapImageLayer({                 url: "http://",                 sublayers: [{                     id: 30,                     visible: true                 }]             }); You will be able to track the status of this bug via MyEsri https://my.esri.com. Thank you for bringing this issue to our attention. 

FYI-

Outcomes