<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add KML layer to the Web in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543195#M50570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Python Toolbox that generate a KML (filename.kmz) and store it in the webserver directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can access the file from Google Earth.&amp;nbsp; However, when I use this example (&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/layers_kml.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/layers_kml.html&lt;/A&gt;&lt;SPAN&gt;) from JavaScript resources I changed&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;this line --&amp;gt; //var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dl.dropbox.com/u/2654618/kml/Wyoming.kml" rel="nofollow" target="_blank"&gt;http://dl.dropbox.com/u/2654618/kml/Wyoming.kml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;to this --&amp;gt; var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://machine.test.com/filename.kml" rel="nofollow" target="_blank"&gt;http://machine.test.com/filename.kml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;to this --&amp;gt; var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://machine.test.com/filename.kmz" rel="nofollow" target="_blank"&gt;http://machine.test.com/filename.kmz&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and got this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.io.script error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: File not found. Wrong url or out of memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&amp;nbsp; In Google Earth I can display the two files above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 11:46:13 GMT</pubDate>
    <dc:creator>thanhnguyen6</dc:creator>
    <dc:date>2013-08-29T11:46:13Z</dc:date>
    <item>
      <title>How to add KML layer to the Web</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543195#M50570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Python Toolbox that generate a KML (filename.kmz) and store it in the webserver directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can access the file from Google Earth.&amp;nbsp; However, when I use this example (&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/layers_kml.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/layers_kml.html&lt;/A&gt;&lt;SPAN&gt;) from JavaScript resources I changed&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;this line --&amp;gt; //var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dl.dropbox.com/u/2654618/kml/Wyoming.kml" rel="nofollow" target="_blank"&gt;http://dl.dropbox.com/u/2654618/kml/Wyoming.kml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;to this --&amp;gt; var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://machine.test.com/filename.kml" rel="nofollow" target="_blank"&gt;http://machine.test.com/filename.kml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;to this --&amp;gt; var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://machine.test.com/filename.kmz" rel="nofollow" target="_blank"&gt;http://machine.test.com/filename.kmz&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and got this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.io.script error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: File not found. Wrong url or out of memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&amp;nbsp; In Google Earth I can display the two files above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543195#M50570</guid>
      <dc:creator>thanhnguyen6</dc:creator>
      <dc:date>2013-08-29T11:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add KML layer to the Web</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543196#M50571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It gave me the same error when I tried in on my server. At the beginning I thought it was a MIME type issue, but it didn't look so after I added them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a post with similar issue, but I didn't find any clue at the end. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/84091-Error-loading-KML-just-started-yesterday."&gt;http://forums.arcgis.com/threads/84091-Error-loading-KML-just-started-yesterday.&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 12:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543196#M50571</guid>
      <dc:creator>ZachLiu1</dc:creator>
      <dc:date>2013-08-29T12:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add KML layer to the Web</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543197#M50572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ZachLiu &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At beginning I cannot access the file from Google Earth either so I add MIME type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extension: .kml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MIME type: application/vnd.google-earth.kml+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extension: .kmz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MIME type: application/vnd.google-earth.kmz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then Google Earth see it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still got the error from the Java Script above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543197#M50572</guid>
      <dc:creator>thanhnguyen6</dc:creator>
      <dc:date>2013-08-29T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add KML layer to the Web</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543198#M50573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Zachlui:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I understand the problem.&amp;nbsp; The following statement is from here (&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/kmllayer.html"&gt;https://developers.arcgis.com/en/javascript/jsapi/kmllayer.html&lt;/A&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To add a KML file(.kml or .kmz) to a map, the KML must be available via a publicly accessible URL. Locally hosted or KML files inside a firewall are not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 14:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-kml-layer-to-the-web/m-p/543198#M50573</guid>
      <dc:creator>thanhnguyen6</dc:creator>
      <dc:date>2013-08-29T14:19:05Z</dc:date>
    </item>
  </channel>
</rss>

