Select to view content in your preferred language

GeoRSS, CSV or KML samples stop running when downloaded

3269
2
Jump to solution
06-22-2015 11:29 PM
HumzaAkhtar
Deactivated User

I can run these samples by going to Samples | ArcGIS API for JavaScript and clicking on "View Live Sample" or "Explore in the sandbox"

but when I download them as zip and then try to run the html file that I have downloaded through my browser by double clicking on it, the kml, georss or csv layer doesnot load up at all. Does any one know the reason behind this? I am talking about these three samples although this issue can be with others as well but I never tried them,

CSV | ArcGIS API for JavaScript

GeoRSS | ArcGIS API for JavaScript

KML | ArcGIS API for JavaScript

Thanks

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

When you run these in the browser, does the url start with "file://"? You have to run these using "http://". There used to be a document in the JavaScript help about this, but the current page doesn't have this.

Also, the CSV example uses a proxy, so you have to make sure you have that set up on your end. See Using the proxy | Guide | ArcGIS API for JavaScript and Retrieve data from a web server | Guide | ArcGIS API for JavaScript

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

When you run these in the browser, does the url start with "file://"? You have to run these using "http://". There used to be a document in the JavaScript help about this, but the current page doesn't have this.

Also, the CSV example uses a proxy, so you have to make sure you have that set up on your end. See Using the proxy | Guide | ArcGIS API for JavaScript and Retrieve data from a web server | Guide | ArcGIS API for JavaScript

KellyHutchins
Esri Frequent Contributor

The info Ken refers to can be found at the top of this doc:

Set up a development environment | API Reference | ArcGIS API for JavaScript