+ Reply to Thread
Results 1 to 3 of 3

Thread: eTime widget reset time on layer switch modification

  1. #1
    rhett zufelt

    Join Date
    Aug 2010
    Posts
    1,194
    Points
    493
    Answers Provided
    77


    0

    Default eTime widget reset time on layer switch modification

    Hi Robert,

    This eTime widget is great. However, I have run into a situation where I would like to be able to pick a different layer from the drop-down list and have it NOT reset the time slider to the beginning.

    I have different layers, but the same time ranges on each, and want the user to only have to pick the layer and have it toggle on/off the proper layer, but leave it on the year they are currently on.

    I've looked into the code some, but can't find where/what to change. Don't want to break the rest of it as it is working so nicely. Would this be a simple modification, or is it getting pretty indepth?

    Thanks again,

    R_

  2. #2
    Robert Scheitlin

    Join Date
    Mar 2010
    Posts
    9,258
    Points
    5578
    Answers Provided
    938


    1
    This post is marked as the answer

    Lightbulb Re: eTime widget reset time on layer switch modification

    Rhett,

    Sure it is very simple. In the ddlTimeLayers_changeHandler function just comment out the last line:

    Code:
    //timeSlider.thumbIndexes = [0];
    Just because it's not the answer you want, does not mean that it is not the answer.

    Robert Scheitlin

    GIS Manager
    Calhoun County, Alabama


  3. #3
    rhett zufelt

    Join Date
    Aug 2010
    Posts
    1,194
    Points
    493
    Answers Provided
    77


    0

    Default Re: eTime widget reset time on layer switch modification

    Thanks again Robert,

    Worked like a charm.

    R_

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts