<?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: Time Slider not Interacting with Time Enabled Feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1089290#M74292</link>
    <description>&lt;P&gt;The issue was that even though the layer was time enabled, the fields used for the time were wrong. Once I fixed those to the proper start and end dates, it worked as expected.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 14:24:59 GMT</pubDate>
    <dc:creator>cschooley</dc:creator>
    <dc:date>2021-08-16T14:24:59Z</dc:date>
    <item>
      <title>Time Slider not Interacting with Time Enabled Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088664#M74272</link>
      <description>&lt;P&gt;Hey everyone. I am brand new to the Javascript API and Javascript in general, so I don't fully understand how the code syntax works, but I am learning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that I have created an online web app with the Javascript API and the time slider widget doesn't interact with the layer.&lt;/P&gt;&lt;P&gt;It is a map of Utah with points for Oil and Gas wells. In this layer, time is enabled. Within Map Viewer online the time slider works as expected, points appear and disappear as time progresses. In the web map, the time slider shows up and runs but doesn't affect the layer of points at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is pretty simple and can be found below.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    "esri/WebMap",
    "esri/views/MapView",
    "esri/widgets/TimeSlider"
], function (WebMap, MapView, TimeSlider) {

    //Grabbing my web map
  const map = new WebMap({
    portalItem: { )
      id: "1e9a6937760e46d3bd047c108ebf8246"
    }
  });

  const view = new MapView({
    container: "viewDiv",
    map: map
  });
  
  //Creating Timeslider
  const timeSlider = new TimeSlider({
      container: "timeSlider",
      fullTimeExtent: {
          start: new Date(1900,0,1),
          end: new Date(2022,0,1)
      }
  });

  view.ui.add(timeSlider)

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you want to see the Web Map, it can be found &lt;A href="https://utahdnr.maps.arcgis.com/home/item.html?id=dd28d5595a2940929574e79522bb4245" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like to see the online web application, it can be found &lt;A href="https://cschooley95.github.io/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 21:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088664#M74272</guid>
      <dc:creator>cschooley</dc:creator>
      <dc:date>2021-08-12T21:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time Slider not Interacting with Time Enabled Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088678#M74273</link>
      <description>&lt;P&gt;That looks like it will work, at least it's what Esri shows in its examples.&amp;nbsp; My guess is that your feature class isn't set up to be time aware.&amp;nbsp; Maybe look at this, not for the part about Web App Builder, but in how to setup time-enabled layers.&lt;/P&gt;&lt;P&gt;&lt;A title="Time-aware layers" href="https://support.esri.com/en/technical-article/000024856" target="_blank" rel="noopener"&gt;https://support.esri.com/en/technical-article/000024856&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 22:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088678#M74273</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-08-12T22:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Time Slider not Interacting with Time Enabled Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088683#M74274</link>
      <description>&lt;P&gt;The feature class is set up to be time-aware. That's part of my confusion. If you click on the map link I provided and open the map, the slider exists and works as expected when I hit 'play'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a picture showing that the time is enabled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschooley_0-1628806107341.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20777i31F1DBB2A747E6B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="cschooley_0-1628806107341.png" alt="cschooley_0-1628806107341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you think I need to grab the layer specifically? I have tried doing that, but am struggling with understanding all the parameters in the time slider widget, and I think I can view.when() maybe, but that didn't work when I tried, maybe I got that wrong&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 22:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1088683#M74274</guid>
      <dc:creator>cschooley</dc:creator>
      <dc:date>2021-08-12T22:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time Slider not Interacting with Time Enabled Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1089290#M74292</link>
      <description>&lt;P&gt;The issue was that even though the layer was time enabled, the fields used for the time were wrong. Once I fixed those to the proper start and end dates, it worked as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 14:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-slider-not-interacting-with-time-enabled/m-p/1089290#M74292</guid>
      <dc:creator>cschooley</dc:creator>
      <dc:date>2021-08-16T14:24:59Z</dc:date>
    </item>
  </channel>
</rss>

