Config Issues with Enhanced Time Slider Widget version 2.5.1.1 for FlexViewer 2.5

4039
34
Jump to solution
04-27-2012 08:42 AM
AdamZiegler
New Contributor III
I have a question in regards to the configuration of the  Enhanced Time Slider Widget.  I am trying to configure the widget to use a time extent and interval that I specify.  When I do this I seem to break the widget.

<layer label="Surface Water Well Locations" name="Surface Water Well Locations">
  <dateformat>MMMM,YYYY</dateformat>
  <loop>false</loop>
  <singlethumbastimeinstant>true</singlethumbastimeinstant>
  <thumbcount>1</thumbcount>
  <thumbmovingrate>1000</thumbmovingrate>
  <timeextent>
   <starttime>2000/01/01 05:00:00 UTC</starttime>
   <endtime>2010/06/01 05:00:00 UTC</endtime>
  </timeextent>
  <timestopsinterval>1</timestopsinterval>
  <timestopsunits>months</timestopsunits>
</layer>

If I follow the same methods as the original config file the layers do display properly, but I am more interested in being able to set the time period manually.  Any idea what I'm doing wrong above?  Using the standard slider that comes with the Flex Viewer everything behaves as I would suspect. 

Thanks,
Adam Z
Tags (2)
0 Kudos
34 Replies
AdamZiegler
New Contributor III
Adam,

  Firefox should not be the issue as it is the only browser I normally use. Maybe you didn't clear your cache.


Robert,

It must have been a cache problem...all is working properly now.  I apologize for raising any alarms.  thanks for your help!

Adam Z
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Adam,


  1. I wanted to ask if you might still be planning to add this as an option  in the config file for this widget? Yes

  2. I was also wondering if resetting  the time slider to the beginning was a default behavior and if it was  possible to maintain the current time when switching between layers. It is the default of my design. It would only work to leave the slider in it's current position if the layers all had similar time extents and this will not always be the case.

0 Kudos
RhettZufelt
MVP Frequent Contributor
Hi Robert,

I wanted to ask if you might still be planning to add this as an option in the config file for this widget?  I was also wondering if resetting the time slider to the beginning was a default behavior and if it was possible to maintain the current time when switching between layers.

Thanks,
Adam Z


Adam,

If you are using uncompiled version, see this post:

http://forums.arcgis.com/threads/57407-eTime-widget-reset-time-on-layer-switch-modification?p=197425...

R_
0 Kudos
AdamZiegler
New Contributor III
Robert,

Thanks, that makes perfect sense.

Adam Z
0 Kudos
AdamZiegler
New Contributor III
Adam,

    Sure that is possible but I don't think that most users would want that to be the default. Are you working with the source code version or the compiled version?


Hi Robert,

I finally got FlashBuilder and am looking at your eTime code.  I know you said you would add an option to start at the end of the time slider, but any chance you can point me in the direction of adding that functionality myself?

Sorry for pestering, I really appreciate all your help.

Adam Z
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Adam,

   Version 3.0.2 - August 17, 2012

* Added startatoldesttime and resetslideronlayerchange options.
0 Kudos
AdamZiegler
New Contributor III
Adam,

   Version 3.0.2 - August 17, 2012

* Added startatoldesttime and resetslideronlayerchange options.


You are the best!

Thanks!

Adam Z
0 Kudos
FrankRoberts
Occasional Contributor III
Robert, I'm attempting something that maybe isn't right, so that might explain my issues...  The only layer I have in my Flexviewer map is a WMS service that has time enabled.  I'm assume that this is not supported in this widget?


The link to the time enabled WMS service I'm using is as follows:


            <layer label="Surface Sea Water Velocity" type="wms" visible="true" 
                       visiblelayers="surface_sea_water_velocity"
                       imageFormat="png32"
                       alpha="0.6"
                       skipgetcapabilities="true"
                       usemaptime="true"
                       version="1.1.1"
                       url="http://hfrnet.ucsd.edu:8080/thredds/wms/HFRNet/USWC/6km/hourly/RTV?service=WMS&srs=EPSG:4326"/>


My Widget.xml looks like:

<?xml version="1.0" ?>
<configuration>
 <autotogglelayervisibility>true</autotogglelayervisibility>
 <startatoldesttime>true</startatoldesttime>
        <resetslideronlayerchange>true</resetslideronlayerchange>
 <layers>
  <layer label="Water Velocity" name="Surface Sea Water Velocity">
      <dateformat>MMMM, YYYY</dateformat>
      <loop>false</loop>
      <singlethumbastimeinstant>false</singlethumbastimeinstant>
      <thumbcount>1</thumbcount>
      <thumbmovingrate>1000</thumbmovingrate>
      <timeextent>
          <starttime>2011/10/01 00:00:00 UTC</starttime>
          <endtime>2012/09/05 16:00:00 UTC</endtime>
      </timeextent>
      <timestops>
          <timestopsinterval>1</timestopsinterval>
          <timestopsunits>days</timestopsunits>
      </timestops>
  </layer>
        </layers>
 <labels>
  <timelayerlabel>Select Layer: </timelayerlabel>
 </labels>
</configuration>

Thanks for your assistance,
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Frank,

   A couple of things.

  1. Using the eTime widget with only one time enabled layer is not the intended use of this widget as the main purpose of this widget is to allow for multiple time enabled layers to be used. This could be the issue, I will need to test. EDIT... Nope this is not the issue, Just tested...

  2. I was not aware that WMS layers were time aware. The Flex API makes no mention of the WMSLayer having any timeinfo or any time properties.

0 Kudos
FrankRoberts
Occasional Contributor III
Thanks for looking into the WMS topic above.  I have since written code to export the data out of NetCDF and then put it into a feature class in the geoDB.  My current issues is that my features have a field in them called "bearing".  I then rotate the symbol based upon this attribute in the mxd.  However, I am noticing a couple things:

1) if I add AGS service as a whole (dynamic), I can get the features to rotate at the different time stamps, however they over post on them selves and look ugly.
2) if I add the AGS service layers as features, they rotation does not occur.  They do change colors but the arrows always point north.

Any ideas if this can be overcome? Side note I am using the 3.1 version of the widget currently.

Hope to see you in Palm Springs!
Frank
0 Kudos