Time to practice with spatial queries

In this exercise, you will learn how to perform spatial queries using the Query, QueryTask, and FeatureSet objects in the ArcGIS API for JavaScript. Using a Zoning layer from the City of Portland, you will query parcel records and display the results on a map.

Perform the following steps to complete the exercise:

  1. Open the JavaScript Sandbox at http://developers.arcgis.com/en/javascript/sandbox/sandbox.html.
  2. Remove the JavaScript content from the <script> tag that I have highlighted in the following code snippet:
    function init(){
    var map = new esri.Map("mapDiv", {
    center: [-56.049, 38.485],
    zoom: 3,
    basemap: "streets"
  3. Create the variables that ...

Get Building Web and Mobile ArcGIS Server Applications with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.