Hi,
I am having difficulties getting just a single feature from time-enabled Dynamic Layer with JS API 3.10 and ArcGIS for Server 10.2.2.
When I query a MapServer service over the HTML REST API interface with the proper time parameter, I get just one feature as expected.
When I execute query task in JavaScript with query parameter set to 'query.time = map.timeExtent', the response contains features from all times.
I checked the request that the browser actually sends (in Chrome's Network tools) and the time parameter is missing. So it looks like the JavaScript library does not append the time parameter to the request.
I tried several ways of specifying query.time and I tried JS API 3.8 and 3.9 too, but nothing worked.
Can anyone confirm that the time parameter works?
Regards,
Filip.
Solved! Go to Solution.
Hi Filip,
The property name is timeExtent, you are using just time.
Hi Filip,
The property name is timeExtent, you are using just time.
Ohhhhh, thank you so much! It works now. I did read the help over and over but my brain apparently was not paying attention.