<?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 Dynamic Layer and Year Change / Time Slider Update in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-and-year-change-time-slider-update/m-p/258579#M23949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using a Dynamic Layer and a time slider. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I have a time slider responding with my month to month data using a dynamic layer. I based the code off the sample script from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_sliderwithdynamiclayer.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_sliderwithdynamiclayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to add in the option to switch between years in a drop down list and have the time slider update to the data only from the chosen year.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see there is an example that displays this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_snapshot.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_snapshot.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this example is utilizing a feature layer. I would really like to use the Dynamic layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is can the year change / time slider update be done using a Dynamic layer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, maybe there is an example or a logic to work from. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 15:28:51 GMT</pubDate>
    <dc:creator>MasonCounty</dc:creator>
    <dc:date>2012-04-27T15:28:51Z</dc:date>
    <item>
      <title>Dynamic Layer and Year Change / Time Slider Update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-and-year-change-time-slider-update/m-p/258579#M23949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using a Dynamic Layer and a time slider. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I have a time slider responding with my month to month data using a dynamic layer. I based the code off the sample script from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_sliderwithdynamiclayer.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_sliderwithdynamiclayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to add in the option to switch between years in a drop down list and have the time slider update to the data only from the chosen year.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see there is an example that displays this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_snapshot.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/time_snapshot.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this example is utilizing a feature layer. I would really like to use the Dynamic layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is can the year change / time slider update be done using a Dynamic layer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, maybe there is an example or a logic to work from. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 15:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-and-year-change-time-slider-update/m-p/258579#M23949</guid>
      <dc:creator>MasonCounty</dc:creator>
      <dc:date>2012-04-27T15:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layer and Year Change / Time Slider Update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-and-year-change-time-slider-update/m-p/258580#M23950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nicole,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Time Slider control requires that the geometries are on the client in order to work, so a Feature Layer is required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you wanted to do this with a Dynamic Map Service layer you'd have to create your own slider control and use it in conjunction with a Query Task to retrieve the features from the Server and symbolise on the Graphics Layer ... which is basically what the Feature Layer is doing on your behalf! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you insist on having the features rendered Server-side, you could apply layer definitions to the Dynamic Map Service layer, but either of these methods could become very 'chatty'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any reason why you don't want to use a Feature Layer? You don't need to do anything special to set it up - just create one from an existing layer in your Dynamic Map Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH? Or am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Lewin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2012 16:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-and-year-change-time-slider-update/m-p/258580#M23950</guid>
      <dc:creator>MarkLewin2</dc:creator>
      <dc:date>2012-04-29T16:15:51Z</dc:date>
    </item>
  </channel>
</rss>

