<?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  KML stream  to map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35952#M2978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the ArcGis API&amp;nbsp; for JavaScript. I am Parsing&amp;nbsp; the kml file and get its content as an xml stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Api allows to add a KML layer using an URL but unfortunalety I can't with an XML stream. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is kind of a limitation of the ArcGis API, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require(["esri/map", "esri/layers/KMLLayer"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function ( Map,KMLLayer ){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var kmladdress =&amp;nbsp; kmlUrl; // ONLY THE URL ALLOWED HER , XML/KML STRING IS NOT WORKING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var kmlLayer = new KMLLayer(kmladdress);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _map.addLayer(kmlLayer);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So I&amp;nbsp; you got any idea of how doing it please notify me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Maxim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 14:39:57 GMT</pubDate>
    <dc:creator>maximcouton</dc:creator>
    <dc:date>2014-07-09T14:39:57Z</dc:date>
    <item>
      <title>Add  KML stream  to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35950#M2976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a Kml layer to a map. The data is string under kml format. I fought that the api&amp;nbsp; allows to add a kml layer by giving it a URL, but I can't found un example adding a kml layer by reading it's content from a stream string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use case :&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a kml file, I want to parse its content and add it to the map. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maxim,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35950#M2976</guid>
      <dc:creator>maximcouton</dc:creator>
      <dc:date>2014-07-09T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add  KML stream  to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35951#M2977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the &lt;EM&gt;KML to Layer (Conversion)&lt;/EM&gt; tool?&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00120000004w000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00120000004w000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 12:34:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35951#M2977</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2014-07-09T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add  KML stream  to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35952#M2978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the ArcGis API&amp;nbsp; for JavaScript. I am Parsing&amp;nbsp; the kml file and get its content as an xml stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Api allows to add a KML layer using an URL but unfortunalety I can't with an XML stream. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is kind of a limitation of the ArcGis API, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require(["esri/map", "esri/layers/KMLLayer"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function ( Map,KMLLayer ){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var kmladdress =&amp;nbsp; kmlUrl; // ONLY THE URL ALLOWED HER , XML/KML STRING IS NOT WORKING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var kmlLayer = new KMLLayer(kmladdress);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _map.addLayer(kmlLayer);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So I&amp;nbsp; you got any idea of how doing it please notify me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Maxim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 14:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35952#M2978</guid>
      <dc:creator>maximcouton</dc:creator>
      <dc:date>2014-07-09T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add  KML stream  to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35953#M2979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman';"&gt;I've moved your post into the&lt;/SPAN&gt;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.esri.com/community/developers/web-developers/arcgis-api-for-javascript"&gt;&lt;SPAN style="color: blue; mso-fareast-font-family: 'Times New Roman';"&gt;Arcgis API for&lt;BR /&gt;Javascript&lt;/SPAN&gt;&lt;/A&gt; &lt;SPAN style="mso-fareast-font-family: 'Times New Roman';"&gt;space. You will get a much better answer here as the &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/community/help-and-feedback"&gt;&lt;SPAN style="color: blue; mso-fareast-font-family: 'Times New Roman';"&gt;GeoNet Help&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman';"&gt; is intended for community&lt;BR /&gt;help and feedback. I have also added in a few additional tags. You can see more&lt;BR /&gt;on the community structure, and what topics are under each space from the following documents:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt; &lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-1544"&gt;&lt;SPAN style="color: blue; font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;GeoNet Community Structure&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-1545"&gt;&lt;SPAN style="color: blue; font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;ArcGIS Discussion Forums Migration Strategy&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt; Don &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 17:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-stream-to-map/m-p/35953#M2979</guid>
      <dc:creator>DonOpgenorth</dc:creator>
      <dc:date>2014-08-08T17:10:28Z</dc:date>
    </item>
  </channel>
</rss>

