<?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 Layer.autorefresh in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427397#M10000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering how to implement the layer.autorefresh from a non flex viewer flex application. I saw in the flex viewer documentation that you can just set the autorefresh in the layer tag as long as its inside the basemap tags in the config file. But how do I invoke this from a standard Mxml application? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I could potentially do a setinterval(mylayer.refresh, 20000) for a refresh every 20 seconds,&amp;nbsp; but I'm interested to investigate the autorefresh if I can get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 19:09:09 GMT</pubDate>
    <dc:creator>grahamcooke</dc:creator>
    <dc:date>2013-06-13T19:09:09Z</dc:date>
    <item>
      <title>Layer.autorefresh</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427397#M10000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering how to implement the layer.autorefresh from a non flex viewer flex application. I saw in the flex viewer documentation that you can just set the autorefresh in the layer tag as long as its inside the basemap tags in the config file. But how do I invoke this from a standard Mxml application? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I could potentially do a setinterval(mylayer.refresh, 20000) for a refresh every 20 seconds,&amp;nbsp; but I'm interested to investigate the autorefresh if I can get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 19:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427397#M10000</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2013-06-13T19:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Layer.autorefresh</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427398#M10001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graham,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This is exactly what the Flex Viewer is doing in it's code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerCreationProperties.autoRefresh &amp;gt; 0) &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setInterval(dynLayer.refresh, layerCreationProperties.autoRefresh * 1000); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 20:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427398#M10001</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-06-13T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Layer.autorefresh</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427399#M10002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As ever, Thanks Robert. Obviously didn't dig deep enough into the viewer code. Glad that has validated my approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 20:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-autorefresh/m-p/427399#M10002</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2013-06-13T20:43:28Z</dc:date>
    </item>
  </channel>
</rss>

