Practice time with spatial queries
In this exercise you will practice performing spatial queries using the Query
, QueryTask
, and FeatureSet
objects in the ArcGIS API for JavaScript. We will be querying and displaying records from t the Louisville, Kentucky land records layer.
Follow the given steps to complete the exercise:
- Open the JavaScript Sandbox at https://developers.arcgis.com/javascript/3/sandbox/sandbox.html.
- Remove all the JavaScript content from the
<script>
tag that I have highlighted as follows:
<script> var map; require(["esri/map", "dojo/domReady!"], function(Map) { map = new Map("map", { basemap: "topo", //For full list of pre-defined basemaps, navigate to http://arcg.is/1JVo6Wd center: [-122.45, 37.75], // longitude, latitude zoom: 13 }); }); </script>
- Create variables to store the
map
object, theQueryTask
andQuery
objects, a symbol, and an info template:
<script> var map, query, queryTask; var...