hello there i have used the previous thread about allowing all layers in the layer list legend to be be expanded instead of closed and when i insert the code it doesn't impact performance but rather no layers show up. i am not sure if i have inserted the code incorrectly. Can someone help me with this that has done this before? i have inserted a picture of how the coding looks where the code is suppose to be inserted. rscheitlin
Find the code block below (lines 2-9) and add lines (11 - 16):
<SPAN class="comment token">//bind event</SPAN> handle <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">own</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="token function">on</SPAN><SPAN class="punctuation token">(</SPAN>layerTitleTdNode<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'click'</SPAN><SPAN class="punctuation token">,</SPAN> lang<SPAN class="punctuation token">.</SPAN><SPAN class="token function">hitch</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>_onRowTrClick<SPAN class="punctuation token">,</SPAN> layerInfo<SPAN class="punctuation token">,</SPAN> imageShowLegendDiv<SPAN class="punctuation token">,</SPAN> layerTrNode<SPAN class="punctuation token">,</SPAN> tableNode<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="token function">setTimeout</SPAN><SPAN class="punctuation token">(</SPAN>lang<SPAN class="punctuation token">.</SPAN><SPAN class="token function">hitch</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>_onRowTrClick<SPAN class="punctuation token">,</SPAN> layerInfo<SPAN class="punctuation token">,</SPAN> imageShowLegendDiv<SPAN class="punctuation token">,</SPAN> layerTrNode<SPAN class="punctuation token">,</SPAN> tableNode<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">300</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I am using version 2.2
Devarsi,
What version of WAB are you using?
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.