An important element of many geospatial applications is the ability to search for features that meet certain criteria. The nature of those criteria might be spatial (e.g., land parcels adjacent to a particular street) or non-spatial (e.g., land parcels owned by a particular person).
In Lesson 7, we’ll see how Query objects can be used in an ArcGIS Maps SDK for JS app to answer both spatial and non-spatial questions. Before that, however, we’ll look at the SDK’s Search widget, which can be used to find values in a layer’s attribute table or to find places when configured to work with a locator service.
Objectives
At the successful completion of this lesson, you should be able to:
- configure the Search widget using sources (layers and/or locators);
- understand the concept of a promise (in a JS context);
- set a layer's definition expression;
- define and execute queries.
Questions?
If you have any questions now or at any point during this week, please feel free to post them to the Lesson 7 Discussion Forum. (That forum can be accessed at any time by clicking on the Discussions tab.)