Identify task picking features out of time slider range

454
2
Jump to solution
01-20-2014 06:44 AM
CharmaleeSandanayake
New Contributor III
I am using the time slider and identify task in a test web app: http://maps.peterborough.ca/culture/events/index3.html

I noticed that when I click on features out of the range defined by the time slider, the identify task works even though the features themselves are not visible.

Does anyone know how to limit the identify task to only pick features that are within the range defined by the time slider?

I am already using the following identify parameters, and these work to limit the identify task to layers checked in the table of contents, but have no effect on the ones out of the time slider range:

identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParams.layerIds = layerDynamic.visibleLayers;

Any suggestions would be appreciated,
Charmalee
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Charmalee,

   Are you passing the maps timeExtent to the IdentifyParamters timeExtent property?

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Charmalee,

   Are you passing the maps timeExtent to the IdentifyParamters timeExtent property?
0 Kudos
CharmaleeSandanayake
New Contributor III
Thanks Robert! I added this line and it worked:

identifyParams.timeExtent = map.timeExtent;
0 Kudos