AnsweredAssumed Answered

Turning on time-aware capability

Question asked by chairiis on Oct 12, 2015
Latest reply on Oct 14, 2015 by chairiis

Hello,

 

I am trying to create a time slider from a dynamic Json url but it is not going too well. I parsed through the data and manually created a feature layer through the help of the following link: Feature collection | ArcGIS API for JavaScript but can't seem to get any time information.

 

I have created a esriFieldTypeDate field in the layer definition, formatted the date in YYYYMMDDHHMMSS format and defined the feature layer as Featurelayer.MODE_SNAPSHOT. However when I was trying to access the feature layer's timeinfo properties, the console displayed the value as undefined.

 

How can I access/enable the time attributes?

 

Any help would be appreciated.

Outcomes