<?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 Keeping a map time extent current in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keeping-a-map-time-extent-current/m-p/571506#M53267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a webpage that utilizes various layers in the ESRI JS API.&amp;nbsp; The page loops through the layers, setting the opacity to 0.9 to view, then 0.0 to disappear.&amp;nbsp; This is what occurs when the page is in what I call "normal" mode.&amp;nbsp; In this mode all the layers stay up to date and the page runs for days on end without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the page necessarily switches to "alternate" mode at a given time.&amp;nbsp; In this mode all layers are set to 0.0 opacity except for a few.&amp;nbsp; One of the visible layers is set to loop with time by using a function that determines it's timeExtent, and then updates the Map timeExtent every second so the layer moves with time. This works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the page returns to "normal" mode, the looping re-commences as it should.&amp;nbsp; The issue is that after a given amount of time (which I haven't been able to pin down yet), the layers stop appearing when it is their turn in the loop.&amp;nbsp; This only occurs if the page has recently been in "alternate" mode.&amp;nbsp; I think what is happening is the page exits "alternate" mode with the Map timeExtent established at the endTime of the layer that is set to loop in "alternate" mode.&amp;nbsp; Thus, the map is "stuck" in that timeExtent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to turn off the timeExtent of the map when I return to "normal" mode, or is there a way to build a function that will always keep the Map timeExtent current?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 19:31:19 GMT</pubDate>
    <dc:creator>CharlesGant</dc:creator>
    <dc:date>2015-06-01T19:31:19Z</dc:date>
    <item>
      <title>Keeping a map time extent current</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keeping-a-map-time-extent-current/m-p/571506#M53267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a webpage that utilizes various layers in the ESRI JS API.&amp;nbsp; The page loops through the layers, setting the opacity to 0.9 to view, then 0.0 to disappear.&amp;nbsp; This is what occurs when the page is in what I call "normal" mode.&amp;nbsp; In this mode all the layers stay up to date and the page runs for days on end without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the page necessarily switches to "alternate" mode at a given time.&amp;nbsp; In this mode all layers are set to 0.0 opacity except for a few.&amp;nbsp; One of the visible layers is set to loop with time by using a function that determines it's timeExtent, and then updates the Map timeExtent every second so the layer moves with time. This works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the page returns to "normal" mode, the looping re-commences as it should.&amp;nbsp; The issue is that after a given amount of time (which I haven't been able to pin down yet), the layers stop appearing when it is their turn in the loop.&amp;nbsp; This only occurs if the page has recently been in "alternate" mode.&amp;nbsp; I think what is happening is the page exits "alternate" mode with the Map timeExtent established at the endTime of the layer that is set to loop in "alternate" mode.&amp;nbsp; Thus, the map is "stuck" in that timeExtent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to turn off the timeExtent of the map when I return to "normal" mode, or is there a way to build a function that will always keep the Map timeExtent current?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 19:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keeping-a-map-time-extent-current/m-p/571506#M53267</guid>
      <dc:creator>CharlesGant</dc:creator>
      <dc:date>2015-06-01T19:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a map time extent current</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keeping-a-map-time-extent-current/m-p/571507#M53268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the map's time extent to null when no longer needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setTimeExtent(null);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 21:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keeping-a-map-time-extent-current/m-p/571507#M53268</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-08-31T21:34:51Z</dc:date>
    </item>
  </channel>
</rss>

