Select to view content in your preferred language

Time aware plus graphics layer = nothing?

810
1
06-04-2012 10:18 AM
RyanDanford
Emerging Contributor
I have a QueryTask that retrieves several hundred features and inserts them into a GraphicsLayer, however if I query a Time Aware layer, then the graphics never become visible despite the layer containing them.

In looking at a the layer at a break point, I can see that the layer contains the graphics, is initialized, and is visible.

This same query works when the layer forgets how to tell time.  Help!
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
To be filtered by time, the graphics must have their 'TimeExtent' property initialized.
If this property is null, all graphics should be displayed whatever the TimeExtent of the Map.

Do you set the 'TimeExtent' property by code?

If you were using a FeatureLayer, this property might be set for you depending on feature layer metadata, but from my understanding you are not using a feature layer but a graphics layer that you populate by code. Isn't it?

If you can reproduce the issue, could you share code snippet ?

Thanks
0 Kudos