Hi,
Could you please some one answer why the below KML samples is not working in silverlight samples provided by ESRI?
https://developers.arcgis.com/silverlight/sample-code/start.htm#LegendKmlWms
https://developers.arcgis.com/silverlight/sample-code/start.htm#KmlLayerSimple
Thanks,
Ram
Hi Ram,
It seems that the proxy service from http://servicesbeta3.esri.com/SilverlightDemos/ProxyPage/proxy.ashx is not accessible at this moment, I copied the code into a sample application and removed the ProxyUrl from XAML page and it works fine for KmlLayer.
For WmsLayer It throws an exception as you should add some parameters to the layer URL.
Hi,
If you comment the proxy url it works only for the url (Real Time Earth Quakes) below.
http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-age_src.kmz
But it wont work for the other url (Volcanoes of the world) below
http://www.volcano.si.edu/ge/GVPWorldVolcanoes-List.kmz
I think it depends on where the KMX/KML file is downloading from?.
With proxy we dont have this issue earlier.
The ESRI should fix this issue (Make the below proxy available at the earliest possible).
http://servicesbeta3.esri.com/SilverlightDemos/ProxyPage/proxy.ashx
Regards,
Ram
Hi,
You are right. The proxy used in the sample is sometimes not stable. We'll try to get that fixed ASAP.
If you comment the proxy url it works only for the url (Real Time Earth Quakes) below.
I think it depends on where the KMX/KML file is downloading from?.
The SL proxy is mainly useful as a workaround to the SL cross domain access restrictions.
Without proxy, SL can only access to sites that allow cross domain access such as the Earth Quake site: http://earthquake.usgs.gov/crossdomain.xml
Without this cross access permission Silverlight can't access to the KML file.
Note that you can (and should for production) set your own proxy server: Esri/resource-proxy · GitHub