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
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
Got it, thanks!
I'll pass it along!
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)
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.
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!
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.