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 this.map. I want to do something like below:
var layers = this.map._layers; // need to get all the layers?
array.forEach(layers, function (layer) {
layer.refresh();
});

 

Thank you for your help!

Outcomes