how to get identifyTask to honor timeSlider?

462
1
01-17-2011 11:45 AM
PatKeegan
Occasional Contributor
I have a "time enabled" javascript map, with features displaying based on a timeSlider.

The Identify task is not honoring the time extents, it returns all features regardless of time.

This is a problem because people see 1 feature on the map, but they get many records returned in an info windows when they click on the map.

How do I get only the records in the time extent? (that is the behavior in ArcMap)

-Pat Keegan
0 Kudos
1 Reply
PatKeegan
Occasional Contributor
Decided to use a queryTask instead, all good now.

query.timeExtent = timeSlider.getCurrentTimeExtent();
queryTask.execute(query,function(idResults) { addToMap(idResults, evt); });

-Pat
0 Kudos