Select to view content in your preferred language

About KmlLayer URL Problem

514
1
10-04-2012 09:21 PM
daewoongkim
Emerging Contributor
I'm testing add to KMLLayer in flex4.0
I confirmed Basic KmlLayer sample in ArcGis Resources.

Sample code about KMLLayer part
<esri:KMLLayer id="lower48Reflectivity" name="Lower 48 Reflectivity"
     load="lower48Reflectivity_loadHandler(event)"
     loadError="lower48Reflectivity_loadErrorHandler(event)"
     url="http://dl.dropbox.com/u/62421751/RIDGE_NationalLower48Reflectivity.kmz"/>

this code operate very well !!

but url change to http://localhost:6766/KMLFILE/filename.kml, I can see Alert dialog "File not found, Wrong URL"

this url correct!!!

I confirmed this kml file through web browser as IE or Chrome, but flex builder 4.0 show Alert dialog to me.

what is problem??  security??

I don't know and understand why occur this problem.

please help me T^T
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
The url needs to be publicly accessible to the Internet since the KMLLayer uses a service on ArcGIS.com to translate the KML to JSON.
0 Kudos