Introducing tasks in ArcGIS Server
The ArcGIS API for JavaScript allows you to incorporate powerful GIS capabilities into your application by using the Task Framework.
Tasks enable you to perform spatial and attribute queries, find features based on text searches, geocode addresses, identify features, and perform various geometry operations including buffering and distance measurements. The tasks and their related objects reside in the esri
/tasks
namespace.
All tasks in the ArcGIS API for JavaScript follow the same general pattern, so that once you have learned how to use one type of task, you will easily be able to work with another.
At its most basic, the task workflow involves:
- Creating an object to represent the
Input
parameters for the task - Executing the
Task
- Unpacking the object returned by the task, containing the task
Output
:
The Task Framework