<?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 Widget Timeline timeExtent read-only error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-timeline-timeextent-read-only-error/m-p/1076783#M73776</link>
    <description>&lt;P&gt;I am working with ArcGIS API and react to make a webApp.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have added a timeline to my map using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const timeSlider = new TimeSlider({
                    container: "timeSlider",
                    mode: "time-window",
                    view: view
                });
                view.ui.add(timeSlider, "bottom-left");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then I wait for the layer to be created using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(foundLayer).then((lv) =&amp;gt; {
                        console.log(lv)
                        layerView = lv;

                        const start = new Date(2021, 3, 5);
                        const end = new Date(2021, 3, 10);

                        timeSlider.fullTimeExtent = {
                            start: start,
                            end: end
                        };
                        timeSlider.timeExtent = {
                            start: start,
                            end: end
                        };
                    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for some reason I can not change the timeExtent.&amp;nbsp; I get the following error in my console:&lt;/P&gt;&lt;P&gt;"TypeError: [accessor] cannot assign to read-only property 'timeExtent' of esri.widgets.TimeSlider.TimeSliderViewModel"&lt;/P&gt;&lt;P&gt;I was able to get one of the examples to work in code pen, but for some reason I am not able to change the timeExtent parameter because it is read only.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated!!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 15:44:18 GMT</pubDate>
    <dc:creator>gsmith15</dc:creator>
    <dc:date>2021-07-08T15:44:18Z</dc:date>
    <item>
      <title>Widget Timeline timeExtent read-only error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-timeline-timeextent-read-only-error/m-p/1076783#M73776</link>
      <description>&lt;P&gt;I am working with ArcGIS API and react to make a webApp.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have added a timeline to my map using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const timeSlider = new TimeSlider({
                    container: "timeSlider",
                    mode: "time-window",
                    view: view
                });
                view.ui.add(timeSlider, "bottom-left");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then I wait for the layer to be created using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(foundLayer).then((lv) =&amp;gt; {
                        console.log(lv)
                        layerView = lv;

                        const start = new Date(2021, 3, 5);
                        const end = new Date(2021, 3, 10);

                        timeSlider.fullTimeExtent = {
                            start: start,
                            end: end
                        };
                        timeSlider.timeExtent = {
                            start: start,
                            end: end
                        };
                    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for some reason I can not change the timeExtent.&amp;nbsp; I get the following error in my console:&lt;/P&gt;&lt;P&gt;"TypeError: [accessor] cannot assign to read-only property 'timeExtent' of esri.widgets.TimeSlider.TimeSliderViewModel"&lt;/P&gt;&lt;P&gt;I was able to get one of the examples to work in code pen, but for some reason I am not able to change the timeExtent parameter because it is read only.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated!!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-timeline-timeextent-read-only-error/m-p/1076783#M73776</guid>
      <dc:creator>gsmith15</dc:creator>
      <dc:date>2021-07-08T15:44:18Z</dc:date>
    </item>
  </channel>
</rss>

