Time with JS API 3.10 and ArcGIS Server 10.2.2

800
2
Jump to solution
09-11-2014 10:55 AM
FilipKrál
Occasional Contributor III

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.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RiyasDeen
Occasional Contributor III

Hi Filip,

The property name is timeExtent, you are using just time.

query-amd | API Reference | ArcGIS API for JavaScript

View solution in original post

0 Kudos
2 Replies
RiyasDeen
Occasional Contributor III

Hi Filip,

The property name is timeExtent, you are using just time.

query-amd | API Reference | ArcGIS API for JavaScript

0 Kudos
FilipKrál
Occasional Contributor III

Ohhhhh, thank you so much! It works now. I did read the help over and over but my brain apparently was not paying attention.

0 Kudos