<?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 Re: Loading KML in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719852#M66819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your KML file publicly accessible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 18:18:12 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-05-04T18:18:12Z</dc:date>
    <item>
      <title>Loading KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719851#M66818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having trouble loading KML.&amp;nbsp; I'm surprised, because from the docs it looks like it should be really simple.&amp;nbsp; My init looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var map = new esri.Map('map')

var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);

var kmlUrl = 'https://myserver.something.com/maptest/status.kml';
var kml = new esri.layers.KMLLayer(kmlUrl);
map.addLayer(kml);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I notice is that it doesn't ever hit my server to retrieve the kml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to somehow trigger a refresh so that it loads the kml?&amp;nbsp; Or is what I did above enough?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 03:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719851#M66818</guid>
      <dc:creator>ChristopherPiggott</dc:creator>
      <dc:date>2012-05-04T03:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719852#M66819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your KML file publicly accessible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 18:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719852#M66819</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-05-04T18:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719853#M66820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is your KML file publicly accessible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the second thread where I have read that the KML file needs to be publicly available.&amp;nbsp; I find it very frustrating that this is not explicitly mentioned in the documentation.&amp;nbsp; For example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_kmlbuffer.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_kmlbuffer.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kml.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kml.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should probably be modified to mention this very important piece of information!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 13:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719853#M66820</guid>
      <dc:creator>RaphaelSiebenmann</dc:creator>
      <dc:date>2012-09-25T13:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719854#M66821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raphael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do mention that the KML layer needs to be publicly accessible in the API reference (see the first paragraph):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I agree that we should probably add this info to the sample descriptions too. We'll work on getting this info added to the sample descriptions for a future release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 14:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml/m-p/719854#M66821</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-09-25T14:39:21Z</dc:date>
    </item>
  </channel>
</rss>

