<?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 layer not updating when page is reloaded in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577633#M53942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To prevent a url/file from being cached you just add a query parameter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; kmlUrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F79.170.40.180%2Fchurchofthecloud.com%2Fapitest%2Fnewtest2.kml%3F_%3D" rel="nofollow" target="_blank"&gt;http://79.170.40.180/churchofthecloud.com/apitest/newtest2.kml?_=&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getTime&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Oct 2016 20:13:30 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-23T20:13:30Z</dc:date>
    <item>
      <title>KML layer not updating when page is reloaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577632#M53941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This just may be my ignorance as I am just starting out. ( I'll take any advise on tutorials/videos/books ...etc for dealing with the javascript api --specifically kml &amp;amp; json)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the&amp;nbsp;sample to load a KML file and it displayed fine. &amp;nbsp;I then made some changes to the KML but when the page loads it still displays the original KML data without the changes. &amp;nbsp;If I rename the KML file and then modify the page to load the new file, it displays the new content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help, greatly appreciated!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&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.18%2Fdijit%2Fthemes%2Ftundra%2Ftundra.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/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.18%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/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.18%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/&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;/P&gt;&lt;P&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%2F79.170.40.180%2Fchurchofthecloud.com%2Fapitest%2Fnewtest2.kml" rel="nofollow" target="_blank"&gt;http://79.170.40.180/churchofthecloud.com/apitest/newtest2.kml&lt;/A&gt;&lt;SPAN&gt;";&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>Sun, 23 Oct 2016 12:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577632#M53941</guid>
      <dc:creator>JohnCaterino</dc:creator>
      <dc:date>2016-10-23T12:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer not updating when page is reloaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577633#M53942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To prevent a url/file from being cached you just add a query parameter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; kmlUrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F79.170.40.180%2Fchurchofthecloud.com%2Fapitest%2Fnewtest2.kml%3F_%3D" rel="nofollow" target="_blank"&gt;http://79.170.40.180/churchofthecloud.com/apitest/newtest2.kml?_=&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getTime&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 20:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577633#M53942</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-23T20:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer not updating when page is reloaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577634#M53943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Big Thanks...&amp;nbsp;&amp;nbsp; That worked awesome!!!&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Your help not only resolves the issue, it motivates to keep playing!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 21:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-not-updating-when-page-is-reloaded/m-p/577634#M53943</guid>
      <dc:creator>JohnCaterino</dc:creator>
      <dc:date>2016-10-23T21:10:26Z</dc:date>
    </item>
  </channel>
</rss>

