Hello all,
I have been working on adding a layer to a map that is based on a CSV table. I am using v3.18 of Esri's JS API to do this. I am having an issue that when I set the "id" of the CSV layer to "Incidents" it still shows up in the layer-list as "csv".
Layer:
csvLayer<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">CSVLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"/csv/Incidents_test.csv"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">{</SPAN>
copyright<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Knowledge Center"</SPAN><SPAN class="punctuation token">,</SPAN>
id<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Incidents"</SPAN><SPAN class="punctuation token">,</SPAN>
refreshInterval<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">2</SPAN><SPAN class="punctuation token">,</SPAN>
infoTemplate<SPAN class="punctuation token">:</SPAN> kcPopup<SPAN class="punctuation token">.</SPAN>csvPopup
<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>What shows in the Layer-list widget:

I am guessing that somewhere the "id" property is being overwritten. I am not sure where though.
Thanks!
Chris