Does a graphicsLayer support time-awareness?

641
2
Jump to solution
01-23-2012 01:52 PM
StephenLead
Regular Contributor III
In the ArcGIS Server JavaScript API 2.6 I'm looking to implement map graphics. I can't see whether they support time-awareness.


  The help entry for graphicsLayer doesn't mention timeInfo, which is mentioned for featureLayer.

 
A featureLayer is a type of graphicsLayer - but does this mean that  time-awareness is only implemented at the featureLayer level?

 
Rather than using a graphicsLayer, do I need to generate a featureLayer on-the-fly using a  featureCollectionObject in order to access time-awareness and use the  TimeSlider toolbar?

 
Thanks,
Steve
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
Steve,


Correct, time-awareness is added by the feature layer and isn't supported on the graphics layer. As you mentioned you can create a feature collection that is time-aware and use that with the time slider. Here's a sample that creates a time-aware feature layer based on a feature collection:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/mobile_geolocaterenderer.html

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
Steve,


Correct, time-awareness is added by the feature layer and isn't supported on the graphics layer. As you mentioned you can create a feature collection that is time-aware and use that with the time slider. Here's a sample that creates a time-aware feature layer based on a feature collection:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/mobile_geolocaterenderer.html
0 Kudos
StephenLead
Regular Contributor III
Thanks Kelly
0 Kudos