Select to view content in your preferred language

Time widget stops working when non-time enabled layers are added?

2139
2
08-09-2011 06:54 AM
CurtWalker
Deactivated User
I recently created a simple Flex Viewer app based on a service with three time-aware layers.  The time animation worked perfectly when I tested the Flex Viewer in a browser.

But I need to show some points data on top of the time-aware layers.  These point layers are not time-aware and do not participate in the animation.  When I test this in ArcMap it works perfectly.  The points stay put while the time-aware layers beneath them change during the animation.  But when I update the service and reload the Flex Viewer app I no longer see the time-aware layers and the Time Widget is unresponsive.

What am I doing wrong?
Tags (2)
0 Kudos
2 Replies
CurtWalker
Deactivated User
Turns out I had a typo in this tag in the TimeWidget.xml

<timeextent setfromlayer="layer label"/>


The text for "layer label" did not match the operational layer containing the time-enabled data.  Problem sovled.
0 Kudos
AndreasFank
New Contributor
Hi! Maybe you can help me with my problem, which I posted here: http://forums.arcgis.com/threads/38830-quot-Slideshow-quot-for-Layers.
I want to use the time slider widget (or any other widget which does the same) but without time enabled date, just with my layers. So you mentioned the "setfromlayer" routine but I do'nt know exactly how to use it and I don't find example code. I have something like this, but it doesn't work:
<?xml version="1.0" ?>
<configuration>

    <dateformat>YYYY</dateformat>
    <loop>false</loop>
    <singlethumbastimeinstant>false</singlethumbastimeinstant>
    <thumbcount>1</thumbcount>
    <thumbmovingrate>1000</thumbmovingrate>
    <!--<timeextent>
        <starttime>2000/01/01 00:00:00 UTC</starttime>
        <endtime>2009/12/31 00:00:00 UTC</endtime>
 </timeextent> -->
    <timeextent setfromlayer="Watershed_2001"/>
    <timeextent setfromlayer="Watershed_2002"/>
 <timeextent setfromlayer="Watershed_2003"/>
 <timeextent setfromlayer="Watershed_2004"/>
 <timeextent setfromlayer="Watershed_2005"/>
 <timeextent setfromlayer="Watershed_2006"/>
 <timeextent setfromlayer="Watershed_2007"/>
 <timeextent setfromlayer="Watershed_2008"/>
 <timeextent setfromlayer="Watershed_2009"/>
 <timeextent setfromlayer="Watershed_mw"/>
 <timestops>
        <timestopsinterval>1</timestopsinterval>
        <timestopsunits>year</timestopsunits>
    </timestops>

</configuration>

the Watershed_xx layers are my layers which I want to slide, these layers are not time enabled and don't have a time field. all the layers have 27 attributes but i only want to slide the whole layer, not the attributes. is this possible? where is my mistake? thanks for your help!
greetings!
0 Kudos