<?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: Setting timeExtent on arcgis-map component not updating featurelayer time extent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612239#M87097</link>
    <description>&lt;P&gt;You’re seeing this behavior because all operational layers in your web map have timeAnimation set to false as seen &lt;A href="https://jsapi.maps.arcgis.com/sharing/rest/content/items/2432c1097249455cb2daf134b03a887b/data?f=json" target="_self"&gt;here&lt;/A&gt;. As a result, setting the map component’s &lt;EM&gt;timeExtent&lt;/EM&gt; has no effect on layers. Each time aware layer is effectively ignoring the time extent since their &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#useViewTime" target="_self"&gt;useViewTime&lt;/A&gt; property is also set to false.&lt;/P&gt;&lt;P&gt;To enable time-based rendering, you need to explicitly set the useViewTime property to true for each layer after the map has finished loading. This ensures the layers respect the map component's timeExtent. Here is a simplified version of your app working:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/oggyWyW?editors=0010" target="_blank"&gt;https://codepen.io/U_B_U/pen/oggyWyW?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 22:11:07 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2025-05-06T22:11:07Z</dc:date>
    <item>
      <title>Setting timeExtent on arcgis-map component not updating featurelayer time extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612036#M87095</link>
      <description>&lt;P&gt;Using SDK version 4.32 map components. Using a caclite date picker to update the time extent on the map.&lt;/P&gt;&lt;P&gt;Updating the time extent on the map component does not update the time extent on the featurelayers within the webmap. Updating the time extent on the layers within the webmap via the layer collection does update the map.&lt;/P&gt;&lt;P&gt;Here's the codepen -&amp;nbsp;&lt;A href="https://codepen.io/derekwmiller/pen/myyKryd" target="_blank" rel="noopener"&gt;https://codepen.io/derekwmiller/pen/myyKryd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;JS code on lines 110 - 113 does not work. JS code on lines 115 - 124 (commented out) works.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 16:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612036#M87095</guid>
      <dc:creator>MillerDerek</dc:creator>
      <dc:date>2025-05-06T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timeExtent on arcgis-map component not updating featurelayer time extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612239#M87097</link>
      <description>&lt;P&gt;You’re seeing this behavior because all operational layers in your web map have timeAnimation set to false as seen &lt;A href="https://jsapi.maps.arcgis.com/sharing/rest/content/items/2432c1097249455cb2daf134b03a887b/data?f=json" target="_self"&gt;here&lt;/A&gt;. As a result, setting the map component’s &lt;EM&gt;timeExtent&lt;/EM&gt; has no effect on layers. Each time aware layer is effectively ignoring the time extent since their &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#useViewTime" target="_self"&gt;useViewTime&lt;/A&gt; property is also set to false.&lt;/P&gt;&lt;P&gt;To enable time-based rendering, you need to explicitly set the useViewTime property to true for each layer after the map has finished loading. This ensures the layers respect the map component's timeExtent. Here is a simplified version of your app working:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/oggyWyW?editors=0010" target="_blank"&gt;https://codepen.io/U_B_U/pen/oggyWyW?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 22:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612239#M87097</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2025-05-06T22:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timeExtent on arcgis-map component not updating featurelayer time extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612267#M87098</link>
      <description>&lt;P&gt;Thank you for catching my error. This solved the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 03:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-timeextent-on-arcgis-map-component-not/m-p/1612267#M87098</guid>
      <dc:creator>MillerDerek</dc:creator>
      <dc:date>2025-05-07T03:05:14Z</dc:date>
    </item>
  </channel>
</rss>

