<?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 file to the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633612#M59182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put the file on a web server that is publicly accessible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 17:44:23 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-07-11T17:44:23Z</dc:date>
    <item>
      <title>add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633605#M59175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;used an example &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/layers_kml.html" title="https://developers.arcgis.com/javascript/3/jssamples/layers_kml.html"&gt;KML | ArcGIS API for JavaScript 3.25&lt;/A&gt;&amp;nbsp;&amp;nbsp;to add kml file to the map but when trying to use the kml file published on my iis server(&lt;A class="link-titled" href="http://localhost/conus_latest_viirs.kml" title="http://localhost/conus_latest_viirs.kml"&gt;http://localhost/conus_latest_viirs.kml&lt;/A&gt;) it didn't loaded on the map *i can download the file by cliking the url&amp;nbsp;&lt;A class="link-titled" href="http://localhost/conus_latest_viirs.kml" title="http://localhost/conus_latest_viirs.kml"&gt;http://localhost/conus_latest_viirs.kml&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 08:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633605#M59175</guid>
      <dc:creator>mahmoudezeldien</dc:creator>
      <dc:date>2018-07-11T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633606#M59176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mahmoud,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What is the WKID of your KML data? Does it support 4326 or 102100 WKIDs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633606#M59176</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-11T12:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633607#M59177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i used that kml file&amp;nbsp;fromthe URL :&lt;A class="link-titled" href="https://fsapps.nwcg.gov/data_viirs/kml/canada_latest_viirs.kml" title="https://fsapps.nwcg.gov/data_viirs/kml/canada_latest_viirs.kml"&gt;https://fsapps.nwcg.gov/data_viirs/kml/canada_latest_viirs.kml&lt;/A&gt;&amp;nbsp; and the data appears fine,&lt;/P&gt;&lt;P&gt;then i downloaded it and copy it to my iis but after changing the URL in the code to :&lt;A class="link-titled" href="http://localhost/conus_latest_viirs.kml" title="http://localhost/conus_latest_viirs.kml"&gt;http://localhost/conus_latest_viirs.kml&lt;/A&gt;&amp;nbsp; it didn't appear on the map&lt;/P&gt;&lt;P&gt;although i tested downloading the file using the url from local host:&lt;A class="link-titled" href="http://localhost/conus_latest_viirs.kml" title="http://localhost/conus_latest_viirs.kml"&gt;http://localhost/conus_latest_viirs.kml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633607#M59177</guid>
      <dc:creator>mahmoudezeldien</dc:creator>
      <dc:date>2018-07-11T15:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633608#M59178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your code then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633608#M59178</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-11T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633609#M59179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;KML&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.25%2Fdijit%2Fthemes%2Ftundra%2Ftundra.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.25/dijit/themes/tundra/tundra.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.25%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.25/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt; html, body { height: 100%; width: 100%; margin: 0; padding: 0; }&lt;BR /&gt; #map { height: 100%; margin: 0; padding: 0; }&lt;BR /&gt; #meta {&lt;BR /&gt; position: absolute;&lt;BR /&gt; left: 20px;&lt;BR /&gt; bottom: 20px;&lt;BR /&gt; width: 300px;&lt;BR /&gt; height: 100px;&lt;BR /&gt; z-index: 40;&lt;BR /&gt; background: #fff;&lt;BR /&gt; color: #777;&lt;BR /&gt; padding: 5px;&lt;BR /&gt; border: 2px solid #666;&lt;BR /&gt; -webkit-border-radius: 5px;&lt;BR /&gt; -moz-border-radius: 5px;&lt;BR /&gt; border-radius: 5px;&lt;BR /&gt; font-family: arial;&lt;BR /&gt; font-size: 0.9em;&lt;BR /&gt; }&lt;BR /&gt; #meta h3 {&lt;BR /&gt; color: #666;&lt;BR /&gt; font-size: 1.1em;&lt;BR /&gt; padding: 0px;&lt;BR /&gt; margin: 0px;&lt;BR /&gt; display: inline-block;&lt;BR /&gt; }&lt;BR /&gt; #loading {&lt;BR /&gt; float: right;&lt;BR /&gt; }&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.25%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.25/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; var map;&lt;BR /&gt; require([&lt;BR /&gt; "esri/map", "esri/layers/KMLLayer",&lt;BR /&gt; "dojo/parser", "dojo/dom-style",&lt;/P&gt;&lt;P&gt;"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"&lt;BR /&gt; ], function(&lt;BR /&gt; Map, KMLLayer,&lt;BR /&gt; parser, domStyle&lt;BR /&gt; ) {&lt;BR /&gt; map = new Map("map", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [-108.663, 42.68],&lt;BR /&gt; zoom: 6&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;parser.parse();&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffsapps.nwcg.gov%2Fdata_viirs%2Fkml%2Fcanada_latest_viirs.kml" rel="nofollow" target="_blank"&gt;https://fsapps.nwcg.gov/data_viirs/kml/canada_latest_viirs.kml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // var kmlUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fz%2FWyoming.kml" rel="nofollow" target="_blank"&gt;http://localhost/z/Wyoming.kml&lt;/A&gt;&lt;SPAN&gt;";//not working&lt;/SPAN&gt;&lt;BR /&gt; var kml = new KMLLayer(kmlUrl);&lt;BR /&gt; map.addLayer(kml);&lt;BR /&gt; kml.on("load", function() {&lt;BR /&gt; domStyle.set("loading", "display", "none");&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="tundra"&amp;gt;&lt;BR /&gt;&amp;lt;div data-dojo-type="dijit/layout/BorderContainer"&lt;BR /&gt; data-dojo-props="design:'headline',gutters:false"&lt;BR /&gt; style="width: 100%; height: 100%; margin: 0;"&amp;gt;&lt;BR /&gt; &amp;lt;div id="map"&lt;BR /&gt; data-dojo-type="dijit/layout/ContentPane"&lt;BR /&gt; data-dojo-props="region:'center'"&amp;gt;&lt;BR /&gt; &amp;lt;div id="meta"&amp;gt;&lt;BR /&gt; &amp;lt;span id="loading"&amp;gt;&amp;lt;img src="images/loading_black.gif" /&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;h3&amp;gt;Display KML Using a &amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Fkmllayer-amd.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/kmllayer-amd.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;KMLLayer&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;br /&amp;gt;&lt;BR /&gt; The map displays a simple KML file that was created using Google Earth and&lt;BR /&gt; is hosted on an Esri server. Symbology and attributes are honored.&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633609#M59179</guid>
      <dc:creator>mahmoudezeldien</dc:creator>
      <dc:date>2018-07-11T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633610#M59180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mahmoud,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The KMLLayer in the JS API requires the KML file to be publicly accessible.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG style="color: #4d4d4d; font-weight: bold;"&gt;Note&lt;/STRONG&gt;: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So have the layer on your localhost is not going to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633610#M59180</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-11T16:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633611#M59181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so what i need to add my own&amp;nbsp; kml file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633611#M59181</guid>
      <dc:creator>mahmoudezeldien</dc:creator>
      <dc:date>2018-07-11T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633612#M59182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put the file on a web server that is publicly accessible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 17:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633612#M59182</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-11T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633613#M59183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert ,&lt;/P&gt;&lt;P&gt;thanks, it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 06:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633613#M59183</guid>
      <dc:creator>mahmoudezeldien</dc:creator>
      <dc:date>2018-07-12T06:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: add kml file to the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633614#M59184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 12:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-kml-file-to-the-map/m-p/633614#M59184</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-12T12:41:15Z</dc:date>
    </item>
  </channel>
</rss>

