<?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 Quickest Way to Refresh a Layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quickest-way-to-refresh-a-layer/m-p/415018#M38200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I create a point new point in a service layer I want it to refresh right away. The only way I have found is to set the &lt;SPAN&gt;refreshInterval&amp;nbsp;and wait six seconds. This works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; for (var index in map.mapView.allLayerViews.items) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.mapView.allLayerViews&lt;/SPAN&gt;.items[index].layer.refreshInterval = 0.1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easier way to just quickly refresh the layer though? After this it hits the server every 6 seconds which doesn't seem necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 22:55:58 GMT</pubDate>
    <dc:creator>jordanparfitt1</dc:creator>
    <dc:date>2018-08-23T22:55:58Z</dc:date>
    <item>
      <title>Quickest Way to Refresh a Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quickest-way-to-refresh-a-layer/m-p/415018#M38200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I create a point new point in a service layer I want it to refresh right away. The only way I have found is to set the &lt;SPAN&gt;refreshInterval&amp;nbsp;and wait six seconds. This works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; for (var index in map.mapView.allLayerViews.items) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.mapView.allLayerViews&lt;/SPAN&gt;.items[index].layer.refreshInterval = 0.1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easier way to just quickly refresh the layer though? After this it hits the server every 6 seconds which doesn't seem necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quickest-way-to-refresh-a-layer/m-p/415018#M38200</guid>
      <dc:creator>jordanparfitt1</dc:creator>
      <dc:date>2018-08-23T22:55:58Z</dc:date>
    </item>
  </channel>
</rss>

