Adding .CSV file

المشرف العام

Administrator
طاقم الإدارة
When I add my file to ArcGis SandBox it shows the data from CSV file to Layer . But when I try to Add it through ArcGis API For JavaScript it doesn't work.I'm working on localhost.

Help!!!

urlUtils.addProxyRule({ proxyUrl: "/proxy/", urlPrefix: "dl.dropboxusercontent.com" }); csv = new CSVLayer("https://dl.dropboxusercontent.com/s/17wblrz70ycq02q/crime2.csv?dl=0"); var orangeRed = new Color([238, 45, 0, 0.5]); // hex is #ff4500 var marker = new SimpleMarkerSymbol("solid", 15, null, orangeRed); var renderer = new SimpleRenderer(marker); csv.setRenderer(renderer); var template = new InfoTemplate("Address: ${Legend}
", "Policestation: ${Chowki}
Lat: ${Y}
Long: ${X}"); csv.setInfoTemplate(template); map.addLayer(csv);

أكثر...
 
أعلى