AnsweredAssumed Answered

CSV Layer JS Id

Question asked by sch7712 on Oct 26, 2016
Latest reply on Oct 26, 2016 by sch7712

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: new CSVLayer("/csv/Incidents_test.csv", {
              copyright: "Knowledge Center",
              id: "Incidents",
              refreshInterval: 2,
              infoTemplate: kcPopup.csvPopup
          })

 

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

Outcomes