<?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: Set start time for refreshInterval in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437498#M40305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use setTimeout to schedule when to call setRefreshInterval on the layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 20:21:01 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2014-06-10T20:21:01Z</dc:date>
    <item>
      <title>Set start time for refreshInterval</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437497#M40304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My app's data updates every 15 minutes starting at top of the hour.&amp;nbsp; I want to set a start time for refreshInterval so whenever a map is loaded,&amp;nbsp; a start time is set.&amp;nbsp; For example, if map is loaded at 9:04 am&amp;nbsp; I want to set the map refresh starting time at 9:20 am (data will start to refresh at 9:15 am and it may take up to 5 minutes to finish calculation).&amp;nbsp; Then set the&amp;nbsp; refreshInterval to 15 minutes.&amp;nbsp; this way does not matter when user loads the map the map will be updated every 15 minutes with new data.&amp;nbsp; it is very important that user can view the latest data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I did not find any thing in map or layer object which allows me to set the start time.&amp;nbsp; At moment I do not know what to do except to write my own update function.&amp;nbsp; Please help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437497#M40304</guid>
      <dc:creator>YinghongLi</dc:creator>
      <dc:date>2014-06-10T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set start time for refreshInterval</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437498#M40305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use setTimeout to schedule when to call setRefreshInterval on the layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 20:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437498#M40305</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2014-06-10T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set start time for refreshInterval</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437499#M40306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I checked setTimeout function.&amp;nbsp; It does not set a start time.&amp;nbsp; It just runs a function after the given time.&amp;nbsp; What I need is something like window' scheduler.&amp;nbsp; I can set a start time.&amp;nbsp; from the start time every 15 minutes the map will refresh.&amp;nbsp; More help is needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437499#M40306</guid>
      <dc:creator>YinghongLi</dc:creator>
      <dc:date>2014-06-13T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set start time for refreshInterval</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437500#M40307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;setTimeout is what you need.&amp;nbsp; You will just have to calculate the current time, and do some math.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use javascripts date object and .getMinutes() methods to get the minutes of the hour.&amp;nbsp; Then use how many minutes until 15,30,45,60,0 etc to calculate how long to setTimeout.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437500#M40307</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-06-13T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set start time for refreshInterval</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437501#M40308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would caution against this approach if you have a lot of users since they'll all then be hitting your server at the same time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-time-for-refreshinterval/m-p/437501#M40308</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2014-06-13T18:29:29Z</dc:date>
    </item>
  </channel>
</rss>

