AnsweredAssumed Answered

FeatureLayer TimeInfo

Question asked by IsraAlhamood on Mar 23, 2016
Latest reply on Mar 28, 2016 by rscheitlin

 

I'm currently working with a time aware layer and I need to get the timeInfo of that layer.

I'm using this method to get the time extent getTimeDefinition() and the result is undefined.

Although in the mapservice link I can find the TimeInfo section with all the details I need as below:

 

Time Info:

      Start Time Field: WB_SPUD_DT

 

      End Time Field: null

 

      Track ID Field:

 

      null

 

      Time Extent:
        [1935/01/01 00:00:00 UTC, 2016/01/01 00:00:00 UTC]
      Time Reference:

 

      N/A

 

      Time Interval: 5

 

      Time Interval Units: esriTimeUnitsYears

 

      Has

 

      Live Data: false

 

      Export Options:
        Use Time: true

 

        Time Data Cumulative: false

 

        Time Offset:

 

        null

(null)

it just tells me it's undefined when I want to get it using this method. am I missing something?

please help!

 

Outcomes