Select to view content in your preferred language

"Slideshow" for Layers

419
1
09-05-2011 02:18 PM
AndreasFank
New Contributor
Hi together!

I have 10 dynamic Layers (map server) and my simple idea is, that I want them to react like a time slide where I can press play or next and there will be the next layer in my operational layers list loaded. Just like the time slide widget but without time enabled date. So just the first Layer, then the second, ...
Is there an easy way to do this?

Thank you for any help,
best regards, Andy
Tags (2)
0 Kudos
1 Reply
YungKaiChin
Occasional Contributor
I would ...


1. Create an indicator ... (ex: private var slideNumber:Number; )
2. Create two buttons ... (Next and Prev)
The buttons increase or decrease slideNumber by one (ex: <s:Button id="nextButton" click="{slideNumber++}" />
3. Set the visibility of each dynamic layer (ex: <esri:ArcGISDynamicMapServiceLayer visible="{slideNumber == 1}"/>)

This should create a sort of slideshow.
0 Kudos