<?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: Display of KML file in esri javascript from file object in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1251134#M80043</link>
    <description>&lt;P data-unlink="true"&gt;Thanks Rene for your help here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;BTW:&lt;/STRONG&gt; sorry I tried to move the whole thread&amp;nbsp;to this forum but apparently I did it wrong ^_^''.&lt;/P&gt;&lt;P&gt;Just in case, and for context, this is the &lt;A href="https://community.esri.com/t5/arcgis-rest-js-questions/display-of-kml-file-in-esri-javascript-from-file/td-p/1250701/jump-to/first-unread-message" target="_self"&gt;original question&lt;/A&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 04:42:11 GMT</pubDate>
    <dc:creator>Raul_Jimenez</dc:creator>
    <dc:date>2023-01-25T04:42:11Z</dc:date>
    <item>
      <title>Re: Display of KML file in esri javascript from file object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1250786#M80032</link>
      <description>&lt;P&gt;Yes, It was ArcGIS SDK for JS. I tried with the KMLLayer Class but it was not working when we create it from the upload file. Creating a URL from the Blob and adding it to the KMLLayer Class.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;blob&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Blob&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;fileReader&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;], {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"application/vnd.google-earth.kml+xml"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;URL&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;createObjectURL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;blob&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;// window.open(url, '_blank');&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;externallayer&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;KMLLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It shows invalid KML data.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1250786#M80032</guid>
      <dc:creator>Vinay_Kumar</dc:creator>
      <dc:date>2023-01-24T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Display of KML file in esri javascript from file object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1250894#M80036</link>
      <description>&lt;P&gt;The KMLLayer doesn't parse KML via the client, it sends the KML url to a utility service that parses it into features and returns those results, so passing a KML blob won't work. The KML url has to be accessible by the utility service.&lt;/P&gt;&lt;P&gt;Per the documentation.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;The KMLLayer uses a utility service from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/" target="_blank" rel="noopener"&gt;ArcGIS.com&lt;/A&gt;&lt;SPAN&gt;, therefore your kml/kmz files must be publicly accessible on the internet.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1250894#M80036</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-01-24T16:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display of KML file in esri javascript from file object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1251134#M80043</link>
      <description>&lt;P data-unlink="true"&gt;Thanks Rene for your help here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;BTW:&lt;/STRONG&gt; sorry I tried to move the whole thread&amp;nbsp;to this forum but apparently I did it wrong ^_^''.&lt;/P&gt;&lt;P&gt;Just in case, and for context, this is the &lt;A href="https://community.esri.com/t5/arcgis-rest-js-questions/display-of-kml-file-in-esri-javascript-from-file/td-p/1250701/jump-to/first-unread-message" target="_self"&gt;original question&lt;/A&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1251134#M80043</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2023-01-25T04:42:11Z</dc:date>
    </item>
  </channel>
</rss>

