FeatureLayer TimeInfo

1286
0
03-22-2016 03:50 AM
IsraAlhamood
New Contributor II

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!

    0 Kudos
    0 Replies