<?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: How to programmatically change the timeExtent of a Map when you a timeSlider? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-change-the-timeextent-of-a/m-p/635732#M59384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had cross-posted this on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/q/62112/442" rel="nofollow" target="_blank"&gt;GIS.Stackexchange&lt;/A&gt;&lt;SPAN&gt;, and I got an answer there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I was going about it the wrong way. Instead of setting the timeExtent on the map, I needed to set the time slider to a specific position, and the map will be automatically updated to that time extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I just needed to set the ThumbIndex on the slider, using the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// Assuming time slider has a single time thumb timeSlider.setThumbIndexes([4]); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 03:36:00 GMT</pubDate>
    <dc:creator>DevdattaTengshe1</dc:creator>
    <dc:date>2013-05-30T03:36:00Z</dc:date>
    <item>
      <title>How to programmatically change the timeExtent of a Map when you a timeSlider?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-change-the-timeextent-of-a/m-p/635731#M59383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a time-aware layer in in my map, and also a timeslider. The full time extent of the map is a year, with data every month. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want that when the map loads, the data is shown for that particular month, and the slider is also on that month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can programatically set the timeExtent on the map, using map.setTimeExtent(), but the timeslider does not auto-update to this date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How should the timeExtent to be set, so that the timeSlider auto-updates&amp;nbsp; along with it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To see an reproducible example, go to the sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/time_sliderwithdynamiclayer/index.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/time_sliderwithdynamiclayer/index.html&lt;/A&gt;&lt;SPAN&gt;, and open up your firebug/developer console, and enter &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;map.setTimeExtent(map.timeSlider.fullTimeExtent);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; The map will show you data for the entire period, but the time slider does not update.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 04:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-change-the-timeextent-of-a/m-p/635731#M59383</guid>
      <dc:creator>DevdattaTengshe1</dc:creator>
      <dc:date>2013-05-29T04:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically change the timeExtent of a Map when you a timeSlider?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-change-the-timeextent-of-a/m-p/635732#M59384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had cross-posted this on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/q/62112/442" rel="nofollow" target="_blank"&gt;GIS.Stackexchange&lt;/A&gt;&lt;SPAN&gt;, and I got an answer there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I was going about it the wrong way. Instead of setting the timeExtent on the map, I needed to set the time slider to a specific position, and the map will be automatically updated to that time extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I just needed to set the ThumbIndex on the slider, using the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// Assuming time slider has a single time thumb timeSlider.setThumbIndexes([4]); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 03:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-change-the-timeextent-of-a/m-p/635732#M59384</guid>
      <dc:creator>DevdattaTengshe1</dc:creator>
      <dc:date>2013-05-30T03:36:00Z</dc:date>
    </item>
  </channel>
</rss>

