The ArcGIS API for JavaScript QueryTask enables you to perform both attribute and spatial queries against data layers in a map service. You can also create queries that are a combination of the two. For example, you might need to find all land parcels with an appraised value of greater than $100,000, that intersect the 100-year floodplain.
In this chapter you will learn how to perform attribute and spatial queries using the Query, QueryTask, and FeatureSet objects in the ArcGIS API for JavaScript.
We will cover the following topics:
- Introducing tasks in ArcGIS Server
- Overview of attribute and spatial queries
- The Query object
- Executing the query with QueryTask
- Practice time with spatial queries