CSVLayer not able to plot csv data in arcgis js version 4.10

982
3
12-31-2019 11:43 PM
RitikaManderwal
New Contributor III

Hi,

I m trying to upload a csv file and plot it on arcgis map.

For that i am using CSVLayer .

This is my code

var ly = new CSVLayer({

url:"url-to-csvfile"

})

For this url i am hitting a backend service which is returning a encoded csv file

and above code generating error "unable to identify latitudefield and/or longitudefield from csv"

can anybody tell how me how to decode that file or anyother way to upload csvfile 

Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

What are the names of the fields in your csv?

0 Kudos
RitikaManderwal
New Contributor III

Hi,

Fields are

Latitude Longitude etc

I think latitude and longitude are mandatory fields

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Would it be possible to the url to access your service?

0 Kudos