Select to view content in your preferred language

Enhanced time slider widget problem

982
4
Jump to solution
03-16-2012 05:37 AM
AndreyZhalnin
Emerging Contributor
Hello everybody,
I was trying to switch to enhanced time slider widget (Thanks Robert!), but looks like I have some issue with my layers. I can see them in drop down list of widget window, but can't select them. I suspect this might have to do something with grouping layers in the TOC of my mxd. I wonder if I have layer sitting inside a group (I may have a few levels of these, like the folder structure on a desktop, see image below) how do I specify the layer's name in widget's config file? Previously these layers worked with default time slider. You can see example at http://prodgis.agriculture.purdue.edu/NDM_Atlas_time/, the default time widget is the left time icon, the enhanced is the right icon. I am attaching my widgets config file as well.
Any help is greatly appreciated!
Thank you
Andrey
[ATTACH=CONFIG]12760[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: strelolist

Robert,
Thank you! Now I got it, was able to run the widget.
Appreciate your time!

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Andriy,

   Your issue is you are thinking of layers as one would expect (individual layers of a map service) but esri uses the term layer to describe a WHOLE Map Service. So the Drop down is for use the time slider on more than on Map Service not specifying individual layers of a Map Service.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos
by Anonymous User
Not applicable
Original User: strelolist

Robert, Thank you for the quick answer. I am a bit confused here: in example you provided for eTime widget does each map/layer in Flex viewer (eg "Shad", "Sockeye" etc.) has its own mxd and corresponding ArcGIS service? Or they are "true layers" of a single service/mxd? Thanks again!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andriy,

    You are correct that in my example the layers do all come from the same map service but they are each added to the viewer as individual layers in the main config.xml:

        <operationallayers>
            <layer label="Earthquakes" type="feature" visible="false" alpha="1" mode="snapshot"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0" usetime="true"/>
            <layer label="Chinook" type="feature" visible="true" alpha="1" mode="snapshot"
                   url="http://servicesbeta.esri.com/ArcGIS/rest/services/Portland/FishCount/MapServer/0" usetime="true" />
            <layer label="Steelhead" type="feature" visible="false" alpha="1" mode="snapshot"
                   url="http://servicesbeta.esri.com/ArcGIS/rest/services/Portland/FishCount/MapServer/1" usetime="true" />
            <layer label="Sockeye" type="feature" visible="false" alpha="1" mode="snapshot"
                   url="http://servicesbeta.esri.com/ArcGIS/rest/services/Portland/FishCount/MapServer/2" usetime="true" />
            <layer label="Shad" type="feature" visible="false" alpha="1" mode="snapshot"
                   url="http://servicesbeta.esri.com/ArcGIS/rest/services/Portland/FishCount/MapServer/3" usetime="true" />
        </operationallayers>


Sorry after reading my last post it does sound misleading.
0 Kudos
by Anonymous User
Not applicable
Original User: strelolist

Robert,
Thank you! Now I got it, was able to run the widget.
Appreciate your time!
0 Kudos