Has anyone ever had an issue with the operational layers repeating a layer when looping through them? It seems to happen on mobile devices and on appstudio mobile but not on desktop app.
I am simply wanting to loop though the layers, but I seem to have a repeating layer.
map<SPAN class="punctuation token">.</SPAN>operationalLayers<SPAN class="punctuation token">.</SPAN><SPAN class="token function">forEach</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>value<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
popupMessageBox<SPAN class="punctuation token">.</SPAN>messageText <SPAN class="operator token">+</SPAN><SPAN class="operator token">=</SPAN> <SPAN class="string token">"\nvalue.name = "</SPAN> <SPAN class="operator token">+</SPAN> value<SPAN class="punctuation token">.</SPAN>name
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>In this above example with 4 layers, the first time I run it, it gives me this result
layer.name = 1
layer.name = 2layer.name = 3layer.name = 4
Then I run it again and I get this result. It seems to happen intermittently and only on my mobile device
layer.name = 1
layer.name = 2layer.name = 2layer.name = 4
Wondering if anyone has seen this type of behavior?