AnsweredAssumed Answered

API 4.7 LayerList strange behaviour

Question asked by dlimos on Jun 19, 2018
Latest reply on Jul 24, 2018 by HPathak-esristaff

Hello everyone, 

 

I have a big project with API 4.6 that is based on updates of LayerList Widget. I have found a big difference in the behaviour from 4.6 to 4.7.

 

Look at this sample:

 

JS Bin - Collaborative JavaScript Debugging 

 

After 5 seconds all layers in map are removed. With API 4.6 the LayerList widget is completely cleaned, with 4.7 no, some layers / group layers are still there. 

 

I know that 4.8 aren't officially released yet, but with 4.8 the behaviour is even different from 4.6 and 4.7......

 

Is this a bug? Is there some way to completely refresh LayerList widget after removing all layers from the map? 

 

 

Thank you,

 

Davide

Outcomes