<?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: KML/KMZ data support in ArcGGIS API for Javascript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21406#M1863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing as per your suggestion, but still i am getting following error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"KMLLayer:_setMap - unsupported workflow. Spatial reference of the map and kml layer do not match, and the conversion cannot be done on the client."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2013 08:45:24 GMT</pubDate>
    <dc:creator>NitinShinde</dc:creator>
    <dc:date>2013-04-16T08:45:24Z</dc:date>
    <item>
      <title>KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21398#M1855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are planning on researching on ArcGIS API for Javascript for viewing KML files on the ArcGIS maps. As it is a known fact that we having thousands of KML's being produced all over the world and google Earth being an Enterprise product, we want to research if we could use this API to build a KML viewer for viewing any KML files on web pages. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I would appreciate your expert opinion on possibilities and views.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21398#M1855</guid>
      <dc:creator>venk</dc:creator>
      <dc:date>2011-04-28T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21399#M1856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You absolutely can! I can't speak for the general Javascript API as I've been using the ArcGIS Extension for the Google Maps API in combination with the Google Maps API. However, I can say that the Google Maps API will allow you to add a KML / KMZ overlay without any ESRI tools or API usage. You would just need to provide the URL for the KML when creating a new overlay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you rather pull your KML/KMZ from the ArcGIS Server on a more dynamic basis then you will need to also utilize the extension api, but, the plus side is that you can also do far more than what the Google Maps API allows for on its own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure other folks have better experience with the standard ArcGIS API for Javascript, but my guess is that the two probably have feature parity with one another. Hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21399#M1856</guid>
      <dc:creator>RickZawadzki</dc:creator>
      <dc:date>2011-04-28T16:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21400#M1857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just spoke with an ESRI Technical Support person about this earlier this week.&amp;nbsp; This is not natively supported in the ArcGIS API for JavaScript at this time, though there are plans for support in the future (no telling when).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, because KML is just a markup language, it could theoretically be read in (maybe with the dojox.xml namespace?) and added to the map on a graphics layer.&amp;nbsp; Not ideal at all, and would take a bit of work (haven't implemented this myself) but if it's mission critical and you want to use the ArcGIS API for JavaScript, I think this is what you have to do at this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, if I'm wrong, someone else should feel free to speak up &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21400#M1857</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-04-28T17:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21401#M1858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One option might be to write a geoprocessing service that leverages existing tools within arcmap that convert KML to shapefiles, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21401#M1858</guid>
      <dc:creator>MichaelPorter1</dc:creator>
      <dc:date>2011-08-29T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21402#M1859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/new_v24.html"&gt;Version 2.4 of the API&lt;/A&gt;&lt;SPAN&gt; supports KML data via the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm"&gt;KMLLayer class&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kml.html"&gt;ArcGIS API for JavaScript:&amp;nbsp; KML Layer&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kmlbuffer.html"&gt;ArcGIS API for JavaScript:&amp;nbsp; KML Layer with buffer&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21402#M1859</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-08-29T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21403#M1860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Its good effort by ESRI to support KMLLayer. but it seems spatialreference param does not working. My map and kml are in different projection system. i tried to use optional param but no change. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pls let me know how i can change projection of kml. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Rest API is working. if i put outSR = 3414 with &lt;/SPAN&gt;&lt;A href="http://utility.arcgis.com/sharing/kml"&gt;http://utility.arcgis.com/sharing/kml&lt;/A&gt;&lt;SPAN&gt; then it is able to convert coords as per 3414. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/new_v24.html"&gt;Version 2.4 of the API&lt;/A&gt; supports KML data via the &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm"&gt;KMLLayer class&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Samples:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kml.html"&gt;ArcGIS API for JavaScript:&amp;nbsp; KML Layer&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_kmlbuffer.html"&gt;ArcGIS API for JavaScript:&amp;nbsp; KML Layer with buffer&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 02:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21403#M1860</guid>
      <dc:creator>RajendraShelar</dc:creator>
      <dc:date>2011-09-07T02:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21404#M1861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My map and kml are in different projection system. i tried to use optional param but no change. &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you specifying outSR in the KMLLayer constructor? Your code should look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var kmlLayer = new esri.layers.KMLLayer(kUrl, { 
&amp;nbsp; outSR: new esri.SpatialReference({ wkid: 26912 }) 
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21404#M1861</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-10T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21405#M1862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked for me. Thanks Swingley! Do you know how I can retrieve the original styles of the KML features?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you specifying outSR in the KMLLayer constructor? Your code should look something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var kmlLayer = new esri.layers.KMLLayer(kUrl, { 
&amp;nbsp; outSR: new esri.SpatialReference({ wkid: 26912 }) 
});
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21405#M1862</guid>
      <dc:creator>ermiastesfamariam</dc:creator>
      <dc:date>2021-12-10T20:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: KML/KMZ data support in ArcGGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21406#M1863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing as per your suggestion, but still i am getting following error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"KMLLayer:_setMap - unsupported workflow. Spatial reference of the map and kml layer do not match, and the conversion cannot be done on the client."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 08:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-kmz-data-support-in-arcggis-api-for-javascript/m-p/21406#M1863</guid>
      <dc:creator>NitinShinde</dc:creator>
      <dc:date>2013-04-16T08:45:24Z</dc:date>
    </item>
  </channel>
</rss>

