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

4050
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
RobertScheitlin__GISP
MVP Emeritus
Frank,

  1. That all depends on how you have it configured.

<singlethumbastimeinstant>true</singlethumbastimeinstant>
<thumbcount>1</thumbcount>
Should be what the eTimeWidget.xml is configured for. Make sure that your layer in the mxd has time enabled and do not have "display time cumulatively" checked.

    2.  For the FeatureLayer to use rotation (which would happen client side) you would have to write code to take the value of the rotation field and rotate each makerSymbol from the value of that field.
0 Kudos
FrankRoberts
Occasional Contributor III
Thank You Robert, as always that is exactly what I was looking for!
0 Kudos
INCOISWebMaster
New Contributor III
Thank You Robert, as always that is exactly what I was looking for!


Is it possible to provide a user option with time window to select custom date and time instead of specifying a fixed one in the .xml file for Flexviewer3.2

Kiran
0 Kudos
CormacMcConaghy
New Contributor
Hi Robert,

I'm trying to use the enhanced time widget but can't see any options under the "Select Layer" dropdown menu.  I have a a published service with 3 layers:

1. Total planned investment secured 2Years
2. Local StartUps 2Years
3. Assistance offered by Invest NI 2Years

Below is my syntax, your help would be greatly appreciated, thanks Cormac

<?xml version="1.0" ?>
<configuration>
<autotogglelayervisibility>true</autotogglelayervisibility>
<startatoldesttime>false</startatoldesttime>
    <resetslideronlayerchange>true</resetslideronlayerchange>
<layers>
  <layer label="Total planned investment secured 2Years" name="Total planned investment secured 2Years">
      <dateformat>DD/MM/YYYY</dateformat>
      <loop>false</loop>
      <singlethumbastimeinstant>true</singlethumbastimeinstant>
      <thumbcount>5</thumbcount>
      <thumbmovingrate>1500</thumbmovingrate>
      <timeextent setfromlayer="Total planned investment secured 2Years"/>
      <timeextent>
    <starttime>31/03/2012 05:00:00 UTC</starttime>
    <endtime>31/03/2009 05:00:00 UTC</endtime>
   </timeextent>
      <timestops>
          <timestopsinterval>1</timestopsinterval>
          <timestopsunits>years</timestopsunits>
      </timestops>
  </layer>
  <layer label="Local StartUps 2Years" name="Local StartUps 2Years">
   <dateformat>DD/MM/YYYY</dateformat>
      <loop>false</loop>
      <singlethumbastimeinstant>true</singlethumbastimeinstant>
      <thumbcount>5</thumbcount>
      <thumbmovingrate>350</thumbmovingrate>
      <timeextent setfromlayer="Local StartUps 2Years"/>
      <thumbposition>
    <startthumb>31/03/2013 00:00:00 UTC</startthumb>
   </thumbposition>
  </layer>
  <layer label="Assistance offered by Invest NI 2Years" name="Assistance offered by Invest NI 2Years">
   <dateformat>DD/MM/YYYY</dateformat>
      <loop>false</loop>
      <singlethumbastimeinstant>true</singlethumbastimeinstant>
      <thumbcount>5</thumbcount>
      <thumbmovingrate>350</thumbmovingrate>
      <timeextent setfromlayer="Assistance offered by Invest NI 2Years"/>
       <thumbposition>
    <startthumb>31/03/2013 00:00:00 UTC</startthumb>
    <endthumb>31/03/2009 00:00:00 UTC</endthumb>
   </thumbposition>
  </layer>
</layers>
<labels>
  <timelayerlabel>Select Layer: </timelayerlabel>
</labels>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Cormac,

   Looking at your configuration there are a couple of things that stick out:

  1. <thumbcount>5</thumbcount> Really 5 slider thumbs?... How about one or two.

  2. <layer label="Total planned investment secured 2Years" name="Total planned investment secured 2Years"> the name attribute is the name of the layer label in the main config.xml (as outlines in the eTime slider widget tags.pdf).

0 Kudos