<?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: The timeSlider does not scroll forward in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343307#M82617</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide me with a reproducible case? Without one it is hard to recreate the behavior. Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 15:20:59 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-10-30T15:20:59Z</dc:date>
    <item>
      <title>The timeSlider does not scroll forward</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343104#M82609</link>
      <description>&lt;P&gt;I used vue3.2.47,@arcgis/core 4.27.6 for development, but I found a problem when I used TimeSlider again. According to the example in the document, I created TimeSlider in the interface, but this TimeSlider did not scroll forward, so I need to press the pause button. Press the Start button again, the slider will move forward, how to solve this problem? Here is the code I used to create the TimeSlider.&lt;/P&gt;&lt;P&gt;`&lt;/P&gt;&lt;P&gt;&amp;lt;!-- 历史变迁功能 --&amp;gt;&lt;BR /&gt;&amp;lt;script setup&amp;gt;&lt;BR /&gt;import { CHMap3d } from "@/js/utils/esri-map-view-3d.js";&lt;BR /&gt;import _map3dUtil from "@/js/utils/esri-map-3d-util.js";&lt;BR /&gt;import { onMounted, onUnmounted, ref, watch, nextTick } from "vue";&lt;BR /&gt;import eventBus from "@/libs/event-bus.ts";&lt;BR /&gt;import TimeSlider from "@arcgis/core/widgets/TimeSlider";&lt;/P&gt;&lt;P&gt;// 定义时间轴变量&lt;BR /&gt;let timeSlider;&lt;/P&gt;&lt;P&gt;onMounted(async () =&amp;gt; {&lt;BR /&gt;// 初始化时间轴&lt;BR /&gt;timeSlider = new TimeSlider({&lt;BR /&gt;container: "timeSliderDiv",&lt;BR /&gt;view: CHMap3d.view,&lt;BR /&gt;mode: "instant",&lt;BR /&gt;fullTimeExtent: {&lt;BR /&gt;start: new Date(2000, 1, 1),&lt;BR /&gt;end: new Date(2030, 1, 1),&lt;BR /&gt;},&lt;BR /&gt;timeExtent: {&lt;BR /&gt;start: new Date(2002, 1, 1),&lt;BR /&gt;end: new Date(2002, 1, 1),&lt;BR /&gt;},&lt;BR /&gt;loop: true,&lt;BR /&gt;playRate: 1000,&lt;BR /&gt;timeVisible:true&lt;BR /&gt;});&lt;BR /&gt;CHMap3d.view.ui.add(timeSlider);&lt;BR /&gt;timeSlider.play();&lt;/P&gt;&lt;P&gt;// 监测时间滑块的变化&lt;BR /&gt;timeSlider.watch("timeExtent", (value) =&amp;gt; {&lt;BR /&gt;console.log(timeSlider)&lt;BR /&gt;// 获取当前时间范围的结束时间,需要根据timeSlider的mode变化而变化&lt;BR /&gt;const currentTime = value.end;&lt;/P&gt;&lt;P&gt;// 检查是否需要触发加载数据操作&lt;BR /&gt;// modifyImageDisplayBasedOnTime(currentTime);&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;onUnmounted(() =&amp;gt; {&lt;BR /&gt;eventBus.off("closeSecondNav");&lt;BR /&gt;// 销毁时间轴&lt;BR /&gt;timeSlider?.destroy();&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;template&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;!-- 时间轴控件--开始 --&amp;gt;&lt;BR /&gt;&amp;lt;div id="timeSliderDiv" class="centered-element esri-time-slider"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;!-- 时间轴控件--结束 --&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/template&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style lang="scss" scoped&amp;gt;&lt;BR /&gt;// 使元素水平居中&lt;BR /&gt;.centered-element {&lt;BR /&gt;position: absolute;&lt;BR /&gt;left: 50%;&lt;BR /&gt;transform: translateX(-50%);&lt;BR /&gt;top: 75vh;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// 修改时间轴背景颜色&lt;BR /&gt;.esri-time-slider {&lt;BR /&gt;background-color: #fff;&lt;BR /&gt;border: 1px solid #ccc;&lt;BR /&gt;border-radius: 5px;&lt;BR /&gt;box-shadow: 0 2px 4px rgba(0, 0, 0, 1);&lt;BR /&gt;padding: 10px;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;`&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2023 08:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343104#M82609</guid>
      <dc:creator>zhaotian</dc:creator>
      <dc:date>2023-10-29T08:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: The timeSlider does not scroll forward</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343159#M82613</link>
      <description>&lt;P&gt;I have found part of the cause of the problem. I used the externalRenderers interface in other pages, so the TimeSlider that used to run normally can't scroll properly now. How can I solve this problem&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 04:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343159#M82613</guid>
      <dc:creator>zhaotian</dc:creator>
      <dc:date>2023-10-30T04:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: The timeSlider does not scroll forward</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343307#M82617</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide me with a reproducible case? Without one it is hard to recreate the behavior. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 15:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-timeslider-does-not-scroll-forward/m-p/1343307#M82617</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-10-30T15:20:59Z</dc:date>
    </item>
  </channel>
</rss>

