AnsweredAssumed Answered

WAB - How to iterate through the layers and refresh the map

Question asked by aesriuser on Apr 3, 2018
Latest reply on Apr 3, 2018 by kenbuja

I have to refresh the map by iterating through all the layers in the map. How to do that?

Is there a method to get all the layers from I want to do something like below:
var layers =; // need to get all the layers?
array.forEach(layers, function (layer) {


Thank you for your help!