After I upgraded to 4.8 I noticed that the group layers do not work anymore. They do not draw and can no longer be turned on/off individually. The layers are grouped in the REST service, and previous to 4.8 they always worked ok. I just went back to 4.7 for now, but wanted to report this issue, as I would like to be able to use the newer versions in the future.
I attached screen shots of the layerlist for the 4.7 and 4.8.
Thanks,
Jeff
Do you have a test app to look at?
I tried to repro in this app, thinking it might be a nested grouplayer issue, but wasn't able to.
Thanks!
Hi Rene,
Thanks for looking at this. The layers I am adding are from a REST service, the group layer itself is created in the arcmap project. This is how I am consuming that in my code:
var testLayer=new MapImageLayer();
Then I add it to the map. The layer above will work in the 4.7 version but not 4.8.
Thanks,
Jeff
Rene,
To see this, use a map service that has grouped layers in it, such as Military (MapServer)
This results in this (using your repo)
Got it, thanks!
I'll pass it along!
Hello,
There is a bug being logged for JavaScript 4.8 for this issue.
The number is- BUG-000115608 (Cannot the set ON/OFF visibility of the sublayers from LayerList widget in JavaScript application).
You can track the bug via support.esri.com to see the status of the bug.
Harsh