<?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: Add KMLLayer from local file in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/1118479#M2513</link>
    <description>&lt;P&gt;Was searching the forums and this thread was relevant to me.&amp;nbsp; (I'm using the ArcGIS API for JavaScript 3.38, BTW.)&amp;nbsp; I'm having the problem that I am indeed "serving" up KML via a local web server but am getting "File not found. Wrong url or out of memory" errors.&amp;nbsp; I think my issue is that my local web server is not "publicly accessible" but is on a closed network.&amp;nbsp; We do have our own ArcGIS Portal installed on our "closed" network, etc.&amp;nbsp; Just wanted to know if this was my issue.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 00:18:05 GMT</pubDate>
    <dc:creator>NeilAcantilado1</dc:creator>
    <dc:date>2021-11-19T00:18:05Z</dc:date>
    <item>
      <title>Add KMLLayer from local file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/185289#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on disconnected scenario (offline) and I'm trying to update KML Layer sample to &lt;/SPAN&gt;&lt;STRONG&gt;add KML Layer from local kml file&lt;/STRONG&gt;&lt;SPAN&gt; instead of the URL in example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately, the k&lt;/SPAN&gt;&lt;STRONG&gt;ml content is not displayed on the map&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is KMLLayer only working for "publicly accessible URL" ? it would be nice to be able to display kml file from local disk file...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also thinking of doing a Geoprocessing package with tool "KML To Layer", but this tool is not licenced for Runtime, does ESRI plan to licence it in next release ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my code doesn't create error, the layer is added, but there is no KML content displayed :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;final KMLLayer kmlLayer = new KMLLayer("C:\\KML_Samples.kml", map.getSpatialReference()); &amp;nbsp;&amp;nbsp;&amp;nbsp; layers.add(kmlLayer);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 08:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/185289#M512</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-03-07T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add KMLLayer from local file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/185290#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The KML Layer is designed to work from a http source, so unless you can serve it via a local web server (like apache) then you don't be able to read KML from a local file.&amp;nbsp; This is noted in the Java Doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I've noted this as a limitation which could be improved in a futre release&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 10:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/185290#M513</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2013-03-14T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add KMLLayer from local file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/1118479#M2513</link>
      <description>&lt;P&gt;Was searching the forums and this thread was relevant to me.&amp;nbsp; (I'm using the ArcGIS API for JavaScript 3.38, BTW.)&amp;nbsp; I'm having the problem that I am indeed "serving" up KML via a local web server but am getting "File not found. Wrong url or out of memory" errors.&amp;nbsp; I think my issue is that my local web server is not "publicly accessible" but is on a closed network.&amp;nbsp; We do have our own ArcGIS Portal installed on our "closed" network, etc.&amp;nbsp; Just wanted to know if this was my issue.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 00:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-kmllayer-from-local-file/m-p/1118479#M2513</guid>
      <dc:creator>NeilAcantilado1</dc:creator>
      <dc:date>2021-11-19T00:18:05Z</dc:date>
    </item>
  </channel>
</rss>

