Select to view content in your preferred language

KML Layer Sample Code not working

2001
2
Jump to solution
04-08-2013 01:27 PM
VishnuSudheendran
New Contributor
KML Sample provided on http://developers.arcgis.com/en/javascript/jssamples/layers_kml.html is not working on my machine. While viewing online I can see Wyoming state highlighted. But when I run the same code on my machine it's not highlighting Wyoming state. Do I have to make some other configurations to make it work? I am new to KML. Can anybody help me on it?
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
Are you running the sample code from your file system or from a web server? In other words, when you try to run the sample on your machine, does the URL start with file:// or http://? It needs to be the latter.

More info:  http://developers.arcgis.com/en/javascript/jshelp/intro_devenv.html

View solution in original post

0 Kudos
2 Replies
derekswingley1
Deactivated User
Are you running the sample code from your file system or from a web server? In other words, when you try to run the sample on your machine, does the URL start with file:// or http://? It needs to be the latter.

More info:  http://developers.arcgis.com/en/javascript/jshelp/intro_devenv.html
0 Kudos
VishnuSudheendran
New Contributor
Are you running the sample code from your file system or from a web server? In other words, when you try to run the sample on your machine, does the URL start with file:// or http://? It needs to be the latter.

More info:  http://developers.arcgis.com/en/javascript/jshelp/intro_devenv.html


Earlier I was running locally from an html file on my system. That was the problem. Now I am running it on ASP.NET Development Server, therefore it works now. Thanks a lot for your help.
0 Kudos