<?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: Refresh TimeSlider with new data in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222092#M79027</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please create a simple repro case? Seems like an app specific issue. You can use this codepen app as a starting point:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/GRdeogw?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/GRdeogw?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 15:33:38 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-10-14T15:33:38Z</dc:date>
    <item>
      <title>Refresh TimeSlider with new data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1221944#M79025</link>
      <description>&lt;P&gt;I have a GeoJSONLayer which I am creating on the client, as a result of data from a webservice at my backend. I am using this layer to create a heatmap, which I am binding to a TimeSlider, so that I can see the heatmap over time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user can change the time frame from which the GeoJSONLayer is created, for example, go from one day to two days. When this happens, I get data from my backend for the new time frame. I re-create the GoeJSONLayer and destroy and recreate the TimeSlider, as it's fullTimeExtent has completely changed. Essentially a complete reset.&lt;/P&gt;&lt;P&gt;But, what is happening is that the TimeSlider is removed from the UI when I reset, and I can't get it back. What is the prefered method of updating the data/layer that the TimeSlider is bound to, so that it can cope with the data changing and start over?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the workflow I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get data from server -&amp;gt; create TimeSlider, supplying existing html container -&amp;gt; create GeoJSONLayer from the data returned from the server -&amp;gt; create heatmap from GeoJSONLayer using HeatMapRenderer -&amp;gt; wait for heatmap to be added to the view -&amp;gt; set TimeSlider fullTimeExtent and timeExtent -&amp;gt; watch timeExtent and filter heatmap layer using definitionExpression -&amp;gt; play TimeSlider.&lt;/P&gt;&lt;P&gt;When I do that the second time, the heatmap is displayed and even plays, but the TimeSlider is not on the UI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 08:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1221944#M79025</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-10-14T08:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh TimeSlider with new data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222092#M79027</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please create a simple repro case? Seems like an app specific issue. You can use this codepen app as a starting point:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/GRdeogw?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/GRdeogw?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 15:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222092#M79027</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-10-14T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh TimeSlider with new data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222313#M79038</link>
      <description>&lt;P&gt;If only... my repro works perfectly &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/quooston/572810ea6bba9f67a6dd788067e1805b" target="_blank"&gt;https://gist.github.com/quooston/572810ea6bba9f67a6dd788067e1805b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 08:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222313#M79038</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-10-16T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh TimeSlider with new data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222345#M79040</link>
      <description>&lt;P&gt;If you'd check out what I'm doing and let me know if that is the prefered method of loading more data dynamcally into the layer and timeslider, that would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 22:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222345#M79040</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-10-16T22:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh TimeSlider with new data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222353#M79041</link>
      <description>&lt;P&gt;I can confirm the reason that the timeslider would not be displayed when recreated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was specifying the dom node that I want the timeslider to be rendered in using the `container` property. When the timeslider is destroyed, it removes the dom node... and therefore the next time it is created it exists, but is not displayed, as the dom node specified has been removed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have addressed this by simply not specifying the dom node, and now it works as expected, although I have less control over the dimensions of the timeslider etc. I can of course recreate the node and so on... I will see.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 01:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-timeslider-with-new-data/m-p/1222353#M79041</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-10-17T01:04:06Z</dc:date>
    </item>
  </channel>
</rss>

