Hi, I create an new widget based on the demo template, to make Imagery slider widget.
So far its working fine and the widget serve only 2 imagery I will add more to the slider later.. Now I need to accomplish following task with the slider. I do appreciate any help on that.
1- When opening the widget I Need certain imagery year 2015 to be added.
2- When closing the widget I need to remove all the imagery from the map..
3- How can to Style the height of the slider.
here is my slider code in startup function.
startup<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">inherited</SPAN><SPAN class="punctuation token">(</SPAN>arguments<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//this.mapIdNode.innerHTML = this.map.id;</SPAN>
map<SPAN class="operator token">=</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>map<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> air2011<SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ArcGISImageServiceLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmydomain.com%2Farcgis%2Frest%2Fservices%2FAerials%2FAerial2001%2FImageServer" target="_blank">http://mydomain.com/arcgis/rest/services/Aerials/Aerial2001/ImageServer</A><SPAN>"</SPAN></SPAN> <SPAN class="punctuation token">,</SPAN><SPAN class="punctuation token">{</SPAN> id<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Aerials 2001"</SPAN><SPAN class="punctuation token">,</SPAN> visible<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">true</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> air2015<SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ArcGISImageServiceLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN