<?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: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699771#M65177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By now I didn't understand how to manage with two different time scales. Your example have only one time scale. The TimeSlider must be able to tune itself from different layers. One layer lasted from 1950 to 2011. Other layer lasted from 2011 April to 2011 July.&amp;nbsp; Is it possible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the &lt;/SPAN&gt;&lt;A href="http://atlas.nsw.gov.au/public/nsw/home/map/elections.html" rel="nofollow noopener noreferrer" target="_blank"&gt;example map&lt;/A&gt;&lt;SPAN&gt;, use the Change Map button to choose another History layer, and note that the time-slider updates to show the new time extent. Is this similar to what you're trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, there is only ever one time-aware layer, and one timeSlider, on the map at any one time. When changing to a new time-aware layer, the old time-aware layer is removed, and the timeSlider is removed using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.timeSlider.pause();
map.timeSlider.destroy();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then a new timeSlider object is created, with the new timeStops passed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your original code sample above, you're trying to create and start-up two timeSlider objects on the same map. You may need to change the logic so that only one time-aware layer (fire &lt;/SPAN&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;SPAN&gt; reg) is shown at a time, with the timeSlider updated to suit that layer when it's loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:27:46 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2021-12-12T05:27:46Z</dc:date>
    <item>
      <title>Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699764#M65170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We cannot have two TimeSliders on the page. Also we cannot create slider, destroy it and create again. Second TimeSlider.startup() returns error "Tried to register widget with id==ts but that id is already registered".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our TimeSlider ids are not 'ts'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is here anybody who had two TimeSliders on the page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The page source is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/TR/html4/strict.dtd" rel="nofollow" target="_blank"&gt;http://www.w3.org/TR/html4/strict.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;title&amp;gt;TimeSlider Error &amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var djConfig = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; parseOnLoad: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.3" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.3&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.require("esri.map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.require("esri.dijit.TimeSlider");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; function init() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var timeSliderFire = new esri.dijit.TimeSlider({style: "width:100%;" }, dojo.byId("dTimeSliderFire"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.setThumbCount(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.setThumbMovingRate(2000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.loop = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var fireDates = [new Date("2010-04-20"), new Date("2010-04-29"), new Date("2010-05-09"), new Date("2010-05-16"), new Date("2010-06-09")];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.setTimeStops(fireDates);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.startup();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var labels = ["2010-04-20", "2010-06-09"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderFire.setLabels(labels);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var timeSliderReg = new esri.dijit.TimeSlider({style: "width:100%;" }, dojo.byId("dTimeSliderReg"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.setThumbCount(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.setThumbMovingRate(2000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.loop = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var fireRegs = [new Date("2010-04-20"), new Date("2010-04-29"), new Date("2010-05-09"), new Date("2010-05-16"), new Date("2010-06-09")];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.setTimeStops(fireRegs);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.startup();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; labels = ["2010-04-20", "2010-06-09"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; timeSliderReg.setLabels(labels);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.addOnLoad(init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body class="claro"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;div id="pnlFires" style="position:absolute; top: 150px; left: 300px; height: 150px; width: 800px;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;div id="dTimeSliderFire"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;div id="pnlReg" style="position:absolute; top: 350px; left: 300px; height: 150px; width: 800px;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;div id="dTimeSliderReg"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 12:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699764#M65170</guid>
      <dc:creator>PaulBelew</dc:creator>
      <dc:date>2011-07-08T12:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699765#M65171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an enhancement logged for this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM069354 Method to tie multiple TimeSliders to a Map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 22:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699765#M65171</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2011-07-08T22:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699766#M65172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We cannot have two TimeSliders on the page&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I understand, the timeSlider applies at the &lt;/SPAN&gt;&lt;STRONG&gt;map&lt;/STRONG&gt;&lt;SPAN&gt; level, meaning that it changes the timeExtent of the entire map. Any time-aware layer on the map will update according to the map's current timeExtent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in this scenario it wouldn't make sense to have multiple timesliders, since the map itself can only have one time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you explain why you need two timesliders on the same map? This might help to come up with a workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 00:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699766#M65172</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-07-11T00:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699767#M65173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I supposed that although map had no link to TimeSlider (map.setTimeSlider wasn't called). I tried to destroy control and create it again. Failed also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there is some bug in this situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have to manually create TimeSlider using dojo :((&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need only TimeSlider as a dijit, not map time extent. And I want to make queries for several date fields and manually filter objects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 05:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699767#M65173</guid>
      <dc:creator>PaulBelew</dc:creator>
      <dc:date>2011-07-11T05:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699768#M65174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still don't think that you need to have 2 separate time sliders. It looks like you're trying to display the change in 2 layers (Fire and Reg) over time - a single timeslider will do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your Fire and Reg layers need to be &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_temporal.htm"&gt;defined as Time-Aware&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/time_sliderwithdynamiclayer.html"&gt;Time Slider&lt;/A&gt;&lt;SPAN&gt; sample for the code to add a time slider to the map and configure it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you simply add the time-aware layers to the map, and when you change the timeSlider they will automatically change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://atlas.nsw.gov.au/public/nsw/home/map/european-settlement.html"&gt;This map&lt;/A&gt;&lt;SPAN&gt; is an example of the timeSlider in action. Drag the timeSlider, and note that it updates all of the layers (the blue dots and orange polygons) - these layers are time-aware, so they both update when the map's timeExtent changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 05:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699768#M65174</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-07-11T05:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699769#M65175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need only TimeSlider as a dijit, not map time extent. And I want to make queries for several date fields and manually filter objects.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I missed that in your previous post. In that case I'm not sure, sorry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 05:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699769#M65175</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-07-11T05:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699770#M65176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;May be you are right. And there is a way to manage with single slider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By now I didn't understand how to manage with two different time scales. Your example have only one time scale. The TimeSlider must be able to tune itself from different layers. One layer lasted from 1950 to 2011. Other layer lasted from 2011 April to 2011 July.&amp;nbsp; Is it possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 07:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699770#M65176</guid>
      <dc:creator>PaulBelew</dc:creator>
      <dc:date>2011-07-11T07:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699771#M65177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By now I didn't understand how to manage with two different time scales. Your example have only one time scale. The TimeSlider must be able to tune itself from different layers. One layer lasted from 1950 to 2011. Other layer lasted from 2011 April to 2011 July.&amp;nbsp; Is it possible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the &lt;/SPAN&gt;&lt;A href="http://atlas.nsw.gov.au/public/nsw/home/map/elections.html" rel="nofollow noopener noreferrer" target="_blank"&gt;example map&lt;/A&gt;&lt;SPAN&gt;, use the Change Map button to choose another History layer, and note that the time-slider updates to show the new time extent. Is this similar to what you're trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, there is only ever one time-aware layer, and one timeSlider, on the map at any one time. When changing to a new time-aware layer, the old time-aware layer is removed, and the timeSlider is removed using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.timeSlider.pause();
map.timeSlider.destroy();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then a new timeSlider object is created, with the new timeStops passed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your original code sample above, you're trying to create and start-up two timeSlider objects on the same map. You may need to change the logic so that only one time-aware layer (fire &lt;/SPAN&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;SPAN&gt; reg) is shown at a time, with the timeSlider updated to suit that layer when it's loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699771#M65177</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-12T05:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot have two TimeSliders on the page and TimeSlider cannot be created twice</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699772#M65178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Stephen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have developed own dijit already. And having full control over this dijit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 05:27:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-have-two-timesliders-on-the-page-and/m-p/699772#M65178</guid>
      <dc:creator>PaulBelew</dc:creator>
      <dc:date>2011-07-12T05:27:39Z</dc:date>
    </item>
  </channel>
</rss>

