<?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 Read KML files using ArcGIS API for JavaScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199470#M18465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need a function that my application reads a user upload KML file and displays on the Esri gray canvas map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I spotted that there is the KMLLayer class but it works only the KML file is accessible via a public URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I can save user's file on our server first and then display the KML file later. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am wondering there is a way that read the file first (the client side) and then save the file later. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2013 10:30:40 GMT</pubDate>
    <dc:creator>SHJang</dc:creator>
    <dc:date>2013-07-15T10:30:40Z</dc:date>
    <item>
      <title>Read KML files using ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199470#M18465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need a function that my application reads a user upload KML file and displays on the Esri gray canvas map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I spotted that there is the KMLLayer class but it works only the KML file is accessible via a public URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I can save user's file on our server first and then display the KML file later. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am wondering there is a way that read the file first (the client side) and then save the file later. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 10:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199470#M18465</guid>
      <dc:creator>SHJang</dc:creator>
      <dc:date>2013-07-15T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read KML files using ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199471#M18466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't ever used this myself, but &lt;/SPAN&gt;&lt;A href="https://github.com/makinacorpus/Leaflet.FileLayer"&gt;Leaflet.FileLayer&lt;/A&gt;&lt;SPAN&gt; sounds like it would let you convert from KML to GeoJSON on the client without involving a server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From there you could use Esri's &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/geojson-utils"&gt;geojson-utils&lt;/A&gt;&lt;SPAN&gt; to convert from GeoJSON to Esri geometries. Graphics from those geometries could then be added to the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 15:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199471#M18466</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-07-15T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read KML files using ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199472#M18467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I haven't ever used this myself, but &lt;A href="https://github.com/makinacorpus/Leaflet.FileLayer"&gt;Leaflet.FileLayer&lt;/A&gt; sounds like it would let you convert from KML to GeoJSON on the client without involving a server.&lt;BR /&gt;&lt;BR /&gt;From there you could use Esri's &lt;A href="https://github.com/Esri/geojson-utils"&gt;geojson-utils&lt;/A&gt; to convert from GeoJSON to Esri geometries. Graphics from those geometries could then be added to the map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff, thank you very much for your answer. I will investigate your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/read-kml-files-using-arcgis-api-for-javascript/m-p/199472#M18467</guid>
      <dc:creator>SHJang</dc:creator>
      <dc:date>2013-07-16T10:37:59Z</dc:date>
    </item>
  </channel>
</rss>

