Group layers not working in js version 4.8

813
5
07-16-2018 06:47 AM
JeffSauder
Occasional Contributor

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

Tags (1)
0 Kudos
5 Replies
ReneRubalcava
Frequent Contributor

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!

0 Kudos
JeffSauder
Occasional Contributor

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

0 Kudos
KenBuja
MVP Esteemed Contributor

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)

0 Kudos
ReneRubalcava
Frequent Contributor

Got it, thanks!

I'll pass it along!

0 Kudos
by Anonymous User
Not applicable

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

0 Kudos